結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2019-05-15 21:39:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 613 ms |
コンパイル使用メモリ | 66,052 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 13:44:24 |
合計ジャッジ時間 | 1,362 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <iostream> #include <string> using namespace std; int main(){ int a, b; cin >>a >>b; for (int i = a; i < b+1; i++){ if(i%3==0) cout <<i <<endl; else { string a=to_string(i); for (int j = 0; j < a.size(); j++){ if (a[j]=='3'){ cout <<i <<endl; break; } } } } }