結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2018-04-18 20:32:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 394 bytes |
コンパイル時間 | 582 ms |
コンパイル使用メモリ | 65,124 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 04:33:44 |
合計ジャッジ時間 | 1,302 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include<iostream> using namespace std; bool isThree(int n){ while(1){ if(n % 10 == 3){ return true; }else if(n < 13){ return false; } n /= 10; } } int main(){ int A, B; cin >> A >> B; while(A <= B){ if(A % 3 == 0 || isThree(A)){ cout << A << endl; } A++; } return 0; }