結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
alpha_virginis
|
| 提出日時 | 2015-05-15 22:24:30 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 332 bytes |
| コンパイル時間 | 1,123 ms |
| コンパイル使用メモリ | 159,896 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-06 04:00:08 |
| 合計ジャッジ時間 | 1,728 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 10 |
ソースコード
#include <bits/stdc++.h>
bool sub1(long a) {
while( a != 0 ) {
if( a % 10 == 3 ) {
return true;
}
a /= 10;
}
return false;
}
int main() {
long A, B;
std::cin >> A >> B;
for(int i = A; i < B; ++i) {
if( i % 3 == 0 || sub1(i) ) {
std::cout << i << std::endl;
}
}
return 0;
}
alpha_virginis