結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
tetsuzuki1115
|
| 提出日時 | 2017-07-30 09:41:55 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 704 bytes |
| コンパイル時間 | 645 ms |
| コンパイル使用メモリ | 81,040 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-10 22:28:38 |
| 合計ジャッジ時間 | 1,380 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <math.h>
#include <cmath>
#include <limits.h>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <functional>
#include <stdio.h>
using namespace std;
int main() {
long long A,B;
cin >> A >> B;
for ( long long i = A; i <= B; i++ ) {
string s = to_string(i);
if ( i%3 == 0 ) {
cout << i << endl;
}
else {
for ( int j = 0; j < s.length(); j++ ) {
if ( s[j] == '3' ) {
cout << i << endl;
break;
}
}
}
}
return 0;
}
tetsuzuki1115