結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2020-01-14 21:01:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 549 bytes |
コンパイル時間 | 1,576 ms |
コンパイル使用メモリ | 167,240 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-26 09:55:41 |
合計ジャッジ時間 | 2,467 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int start, end; int ans; int tmp; cin >> start >> end; for (int i = start; i < end; i++){ if (i % 3 == 0){ cout << i <<"\n"; } else { tmp = i; while (true) { if (tmp % 10 == 3) { cout << i <<"\n"; } tmp = tmp / 10; if (tmp == 0){ break; } } } } return 0; }