結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2019-06-25 12:16:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 385 bytes |
コンパイル時間 | 1,528 ms |
コンパイル使用メモリ | 167,992 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-22 23:47:14 |
合計ジャッジ時間 | 2,403 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; for (int i=a; i<=b; ++i) { bool ok = false; if (i % 3 == 0) ok = true; int k = i; while (!ok && k>0) { if (k % 10 == 3) ok = true; k /= 10; } if (ok) { cout << i << endl; } } return 0; }