結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
dsytk7
|
| 提出日時 | 2016-04-07 23:16:31 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 421 bytes |
| 記録 | |
| コンパイル時間 | 1,388 ms |
| コンパイル使用メモリ | 159,860 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-04 02:35:34 |
| 合計ジャッジ時間 | 2,117 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
for (int i = A; i <= B; ++i) {
if (i%3 == 0) {
cout << i << endl;
}
else {
string s = to_string(i);
for (int j = 0; j < s.length(); ++j) {
if (s[j] == '3') {
cout << i << endl;
}
}
}
}
}
dsytk7