結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2018-06-04 18:44:10 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 440 bytes |
コンパイル時間 | 515 ms |
コンパイル使用メモリ | 54,364 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 09:43:54 |
合計ジャッジ時間 | 1,204 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 17 |
ソースコード
#include<iostream> using namespace std; int main(){ int a, b; cin >> a >> b; for (int i = a;i <= b; i++){ int elem = i; if (elem % 3 == 0){ cout << i << endl; } while(1){ if (elem % 10 == 3){ cout << i << endl; break; } if (!( elem = elem / 10)){ break; } } } return 0; }