結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2020-04-22 15:54:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 347 bytes |
コンパイル時間 | 540 ms |
コンパイル使用メモリ | 66,048 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 18:50:24 |
合計ジャッジ時間 | 1,224 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 10 |
ソースコード
#include <iostream> #include <vector> #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; int main() { long long a, b; cin >> a >> b; for (long long i = a; i <= b; i++) { if (i % 3 == 0) cout << i<<endl; else{ a = i; while (a) { if (a % 10 == 3) cout << i << endl; a = a / 10; } } } return 0; }