結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-25 00:31:09 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 421 bytes |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 29,696 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 14:25:34 |
| 合計ジャッジ時間 | 839 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 9 |
ソースコード
#include <stdio.h>
int main() {
long long i, j, A, B;
scanf("%lld %lld", &A, &B);
for(i = A; i <= B; i++) {
if(i%3 == 0 || i%10 == 3) {
printf("%lld\n", i);
} else {
for(j = 10; j <= 1000000000; j *= 10) {
if(i/j == 3) {
printf("%lld\n", i);
break;
}
}
}
}
return 0;
}