結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2017-08-25 00:18:25 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 394 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 29,568 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 14:23:44 |
合計ジャッジ時間 | 821 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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); } } } } return 0; }