結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2020-12-22 10:54:40 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 389 bytes |
コンパイル時間 | 1,765 ms |
コンパイル使用メモリ | 191,652 KB |
最終ジャッジ日時 | 2025-01-17 06:05:00 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 flag = false; int x = i; while (x) { if (x % 10 == 3) flag = true; x /= 10; } if (i % 3 == 0) flag = true; if (flag) cout << i << endl; } }