結果

問題 No.207 世界のなんとか
ユーザー Drakkon
提出日時 2018-02-05 01:46:40
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 448 bytes
コンパイル時間 991 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-04 10:51:55
合計ジャッジ時間 1,168 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(void){
    long A, B, t;
    scanf("%d%d", &A, &B);
    do{
        t = A;
        if(A % 3 == 0){
            printf("%d\n", A);
        }
        else{
            while(t != 0){
                if(t % 10 == 3){
                    printf("%d\n", A);
                    break;
                }
                t /= 10;
            }
        }
        A++;
    }while(A != B + 1);
    return 0;
}
0