結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2018-02-26 15:09:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 478 bytes |
コンパイル時間 | 1,025 ms |
コンパイル使用メモリ | 66,320 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 01:25:30 |
合計ジャッジ時間 | 1,377 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <iostream> #include <vector> #define REP(i, a, b) for (int i = (a); i < (b); i++) #define dump(s) cerr << __LINE__ << "\t:" << #s << " = " << (s) << endl using namespace std; int main () { int A, B; cin >> A >> B; auto chk = [](int num) -> bool { do { if (num % 10 == 3) return true; num /= 10; } while (num > 0); return false; }; REP (n, A, B + 1) { if (chk(n) || n % 3 == 0) { cout << n << endl; } } return 0; }