結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2019-07-26 23:10:56 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 429 bytes |
コンパイル時間 | 2,004 ms |
コンパイル使用メモリ | 193,256 KB |
最終ジャッジ日時 | 2025-01-07 08:43:11 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b; cin>>a>>b; for (int i = a; i <= b; i++) { if (i % 3 == 0) { cout << i << endl; continue; } int j = i; while (j) { if (j % 10 == 3) { cout << i << endl; break; } j /= 10; } } return 0; }