結果
問題 | No.87 Advent Calendar Problem |
ユーザー | testestest |
提出日時 | 2015-08-16 17:54:16 |
言語 | C90 (gcc 11.4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 101 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 19,840 KB |
実行使用メモリ | 7,968 KB |
最終ジャッジ日時 | 2024-07-18 09:54:18 |
合計ジャッジ時間 | 12,460 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
コンパイルメッセージ
main.c:1:8: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | long n;main(s){scanf("%ld",&n);for(;n;)s+=n>=400?n-=400,57:(n+n/4-n/100)%7==3;n=!printf("%d",s-289);} | ^~~~ main.c: In function ‘main’: main.c:1:8: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int] main.c:1:16: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | long n;main(s){scanf("%ld",&n);for(;n;)s+=n>=400?n-=400,57:(n+n/4-n/100)%7==3;n=!printf("%d",s-289);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | long n;main(s){scanf("%ld",&n);for(;n;)s+=n>=400?n-=400,57:(n+n/4-n/100)%7==3;n=!printf("%d",s-289);} main.c:1:16: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | long n;main(s){scanf("%ld",&n);for(;n;)s+=n>=400?n-=400,57:(n+n/4-n/100)%7==3;n=!printf("%d",s-289);} | ^~~~~ main.c:1:16: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:82: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | long n;main(s){scanf("%ld",&n);for(;n;)s+=n>=400?n-=400,57:(n+n/4-n/100)%7==3;n=!printf("%d",s-289);} | ^~~~~~ main.c:1:82: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:82: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] main.c:1:82: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
long n;main(s){scanf("%ld",&n);for(;n;)s+=n>=400?n-=400,57:(n+n/4-n/100)%7==3;n=!printf("%d",s-289);}