結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2017-07-20 16:07:13 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 367 bytes |
コンパイル時間 | 681 ms |
コンパイル使用メモリ | 55,084 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-08 17:45:41 |
合計ジャッジ時間 | 1,350 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include<iostream> using namespace std; int main(){ int A, B, nowNumber, countThree, i; cin >> A >> B; for(nowNumber=A;nowNumber<=B;nowNumber++){ countThree = 0; if(nowNumber % 3 == 0){ countThree = 1; } for(i=nowNumber;i;i/=10){ if(i % 10 == 3){ countThree = 1; } } if(countThree == 1){ cout << nowNumber << endl; } } }