結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2025-08-05 13:56:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 503 bytes |
コンパイル時間 | 879 ms |
コンパイル使用メモリ | 100,660 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-05 13:56:36 |
合計ジャッジ時間 | 1,845 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <algorithm> #include <iostream> #include <iomanip> #include <climits> #include <string> #include <vector> #include <cmath> #include <set> #include <map> using namespace std; using ll = long long; bool three(int N) { while (N > 0) { if (N % 10 == 3) { return true; } N /= 10; } return false; } int main(void) { int A, B; cin >> A >> B; for (int i = A; i <= B; i++) { if (i % 3 == 0 || three(i)) { cout << i << endl; } } return 0; }