結果

問題 No.653 E869120 and Lucky Numbers
コンテスト
ユーザー testestest
提出日時 2018-02-24 08:58:58
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 6 ms / 2,000 ms
+ 531µs
コード長 140 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 52 ms
コンパイル使用メモリ 36,224 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-21 19:05:27
合計ジャッジ時間 2,222 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 31
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | f;g(c){read(0,&c,1)?g(),f=f-1?f-2?f-3?f-4?0:55/c*c/54*4:c-49?c-55&&c-56?53/c*c/51*3:4:5:52/c*c/50*3:2:0;}main(){f=1;puts(g()>3?"Yes":"No");}
      | ^
main.c:1:1: warning: type defaults to 'int' in declaration of 'f' [-Wimplicit-int]
main.c:1:3: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | f;g(c){read(0,&c,1)?g(),f=f-1?f-2?f-3?f-4?0:55/c*c/54*4:c-49?c-55&&c-56?53/c*c/51*3:4:5:52/c*c/50*3:2:0;}main(){f=1;puts(g()>3?"Yes":"No");}
      |   ^
main.c: In function 'g':
main.c:1:3: warning: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:8: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
    1 | f;g(c){read(0,&c,1)?g(),f=f-1?f-2?f-3?f-4?0:55/c*c/54*4:c-49?c-55&&c-56?53/c*c/51*3:4:5:52/c*c/50*3:2:0;}main(){f=1;puts(g()>3?"Yes":"No");}
      |        ^~~~
main.c: At top level:
main.c:1:106: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | f;g(c){read(0,&c,1)?g(),f=f-1?f-2?f-3?f-4?0:55/c*c/54*4:c-49?c-55&&c-56?53/c*c/51*3:4:5:52/c*c/50*3:2:0;}main(){f=1;puts(g()>3?"Yes":"No");}
      |                                                                                                          ^~~~
main.c: In function 'main':
main.c:1:117: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | f;g(c){read(0,&c,1)?g(),f=f-1?f-2?f-3?f-4?0:55/c*c/54*4:c-49?c-55&&c-56?53/c*c/51*3:4:5:52/c*c/50*3:2:0;}main(){f=1;puts(g()>3?"Yes":"No");}
      |                                                                                                                     ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
  +++ |+#include <stdio.h>
    1 | f;g(c){read(0,&c,1)?g(),f=f-1?f-2?f-3?f-4?0:55/c*c/54*4:c-49?c-55&&c-56?53/c*c/51*3:4:5:52/c*c/50*3:2:0;}main(){f=1;puts(g()>3?"Yes":"No");}

ソースコード

diff #
raw source code

f;g(c){read(0,&c,1)?g(),f=f-1?f-2?f-3?f-4?0:55/c*c/54*4:c-49?c-55&&c-56?53/c*c/51*3:4:5:52/c*c/50*3:2:0;}main(){f=1;puts(g()>3?"Yes":"No");}
0