結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2018-03-09 10:10:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 361 bytes |
コンパイル時間 | 1,371 ms |
コンパイル使用メモリ | 165,832 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-07 16:27:23 |
合計ジャッジ時間 | 1,991 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; bool bChk( const int iNum ) { int i; if( iNum % 3 == 0 ) return true; i = iNum; while( i > 0 ) { if( i % 10 == 3 ) return true; i /= 10; } return false; } int main() { int i; int A; int B; cin >> A; cin >> B; for( i = A; i <= B; i++ ) { if( bChk( i ) ) cout << i << endl; } return 0; }