結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2019-08-16 20:29:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 406 bytes |
コンパイル時間 | 770 ms |
コンパイル使用メモリ | 71,936 KB |
最終ジャッジ日時 | 2025-01-07 12:08:42 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main(){ int a, b; cin >> a >> b; for (int i = a; i <= b; i++) { if (i % 3 == 0) { printf("%d\n", i); } else { int j = i; bool x = false; while (j) { int tmp = j % 10; j /= 10; if (tmp == 3) { x = true; break; } } if (x) { printf("%d\n", i); } } } return 0; }