結果

問題 No.207 世界のなんとか
ユーザー arishikiarishiki
提出日時 2015-12-23 15:50:10
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 21,144 KB
実行使用メモリ 5,724 KB
最終ジャッジ日時 2023-10-19 01:46:34
合計ジャッジ時間 6,903 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>

int ret3 (int x);

int main(void){
  int A, B, i;

  scanf("%d%d", &A, &B);

  for(i=A;i<=B;i++)
    if(!(i%3) || ret3(i)) printf("%d\n", i);

  return 0;
}

int ret3 (int x){
  do{
    if(!(x%10-3)) return 1;
    x=x/10;
  } while(!x);

  return 0;
}
0