結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-28 17:18:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 493 bytes |
| コンパイル時間 | 1,456 ms |
| コンパイル使用メモリ | 167,580 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 16:27:02 |
| 合計ジャッジ時間 | 2,313 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
ll A, B;
cin >> A >> B;
for (ll i = A; i <= B; i++){
if(i % 3 == 0){
cout << i << '\n';
continue;
}
string i_to_string = to_string(i);
for (ll j = 0; j < i_to_string.length(); j++){
if(i_to_string[j] == '3'){
cout << i << '\n';
}
}
}
}