結果

問題 No.207 世界のなんとか
ユーザー hape8810hape8810
提出日時 2018-12-20 20:07:27
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 381 bytes
コンパイル時間 598 ms
コンパイル使用メモリ 22,896 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-26 01:11:48
合計ジャッジ時間 1,701 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 1 ms
4,348 KB
testcase_07 WA -
testcase_08 AC 1 ms
4,348 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 RE -
testcase_16 AC 0 ms
4,348 KB
testcase_17 AC 0 ms
4,348 KB
testcase_18 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |     scanf("%d %d",&A,&B);
      |     ~~~~~^~~~~~~~~~~~~~~

ソースコード

diff #

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