結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
lightnet328
|
| 提出日時 | 2015-05-31 14:25:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 387 bytes |
| コンパイル時間 | 515 ms |
| コンパイル使用メモリ | 57,804 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-06 12:56:23 |
| 合計ジャッジ時間 | 984 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 10 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
string str;
cin >> a >> b;
for(int i = a; i < b; i++) {
if(i % 3 == 0) {
cout << i << endl;
}
else {
str = to_string(i);
for(int j = 0; j < str.size(); j++) {
if(str.at(j) == '3') {
cout << i << endl;
break;
}
}
}
}
}
lightnet328