結果
問題 | No.116 門松列(1) |
ユーザー | 👑 testestest |
提出日時 | 2015-08-08 14:50:47 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 107 bytes |
コンパイル時間 | 76 ms |
コンパイル使用メモリ | 18,944 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 05:52:36 |
合計ジャッジ時間 | 774 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,376 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 0 ms
5,376 KB |
testcase_05 | AC | 0 ms
5,376 KB |
testcase_06 | WA | - |
testcase_07 | AC | 1 ms
5,376 KB |
testcase_08 | AC | 0 ms
5,376 KB |
testcase_09 | AC | 1 ms
5,376 KB |
testcase_10 | WA | - |
testcase_11 | AC | 1 ms
5,376 KB |
testcase_12 | WA | - |
testcase_13 | AC | 1 ms
5,376 KB |
testcase_14 | AC | 1 ms
5,376 KB |
testcase_15 | WA | - |
testcase_16 | AC | 0 ms
5,376 KB |
testcase_17 | AC | 0 ms
5,376 KB |
testcase_18 | WA | - |
testcase_19 | AC | 0 ms
5,376 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | AC | 0 ms
5,376 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a,b,s;main(c){for(scanf("%*d%d%d",&a,&b);~scanf("%d",&c);a=b,b=c)a-b&&b-c&&a<b^c>b&&s++;a=!printf("%d",s);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int] 1 | a,b,s;main(c){for(scanf("%*d%d%d",&a,&b);~scanf("%d",&c);a=b,b=c)a-b&&b-c&&a<b^c>b&&s++;a=!printf("%d",s);} | ^ main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | a,b,s;main(c){for(scanf("%*d%d%d",&a,&b);~scanf("%d",&c);a=b,b=c)a-b&&b-c&&a<b^c>b&&s++;a=!printf("%d",s);} | ^ main.c:1:7: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | a,b,s;main(c){for(scanf("%*d%d%d",&a,&b);~scanf("%d",&c);a=b,b=c)a-b&&b-c&&a<b^c>b&&s++;a=!printf("%d",s);} | ^~~~ main.c: In function ‘main’: main.c:1:7: warning: type of ‘c’ defaults to ‘int’ [-Wimplicit-int] main.c:1:19: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | a,b,s;main(c){for(scanf("%*d%d%d",&a,&b);~scanf("%d",&c);a=b,b=c)a-b&&b-c&&a<b^c>b&&s++;a=!printf("%d",s);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | a,b,s;main(c){for(scanf("%*d%d%d",&a,&b);~scanf("%d",&c);a=b,b=c)a-b&&b-c&&a<b^c>b&&s++;a=!printf("%d",s);} main.c:1:19: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | a,b,s;main(c){for(scanf("%*d%d%d",&a,&b);~scanf("%d",&c);a=b,b=c)a-b&&b-c&&a<b^c>b&&s++;a=!printf("%d",s);} | ^~~~~ main.c:1:19: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:92: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | a,b,s;main(c){for(scanf("
ソースコード
a,b,s;main(c){for(scanf("%*d%d%d",&a,&b);~scanf("%d",&c);a=b,b=c)a-b&&b-c&&a<b^c>b&&s++;a=!printf("%d",s);}