結果

問題 No.482 あなたの名は
ユーザー testestesttestestest
提出日時 2017-02-12 16:35:09
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 130 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 23,228 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-28 14:51:38
合計ジャッジ時間 2,285 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 0 ms
4,380 KB
testcase_02 AC 0 ms
4,380 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 0 ms
4,380 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 22 ms
4,380 KB
testcase_16 AC 23 ms
4,376 KB
testcase_17 AC 22 ms
4,376 KB
testcase_18 AC 22 ms
4,376 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 22 ms
4,380 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 23 ms
4,376 KB
testcase_28 AC 23 ms
4,380 KB
testcase_29 RE -
testcase_30 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:15: warning: data definition has no type or storage class
 long a[1<<18];j;main(i){for(;~scanf("%d",a-i--)?:a[++j]?j-a[j]?a[j]^=a[a[j]]^=a[j]^=a[a[j]],~--*a:1:0;);j=!puts(*a&1?"NO":"YES");}
               ^
main.c:1:15: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int]
main.c:1:17: warning: return type defaults to ‘int’ [-Wimplicit-int]
 long a[1<<18];j;main(i){for(;~scanf("%d",a-i--)?:a[++j]?j-a[j]?a[j]^=a[a[j]]^=a[j]^=a[a[j]],~--*a:1:0;);j=!puts(*a&1?"NO":"YES");}
                 ^~~~
main.c: In function ‘main’:
main.c:1:17: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:31: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 long a[1<<18];j;main(i){for(;~scanf("%d",a-i--)?:a[++j]?j-a[j]?a[j]^=a[a[j]]^=a[j]^=a[a[j]],~--*a:1:0;);j=!puts(*a&1?"NO":"YES");}
                               ^~~~~
main.c:1:31: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:1:31: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
 long a[1<<18];j;main(i){for(;~scanf("%d",a-i--)?:a[++j]?j-a[j]?a[j]^=a[a[j]]^=a[j]^=a[a[j]],~--*a:1:0;);j=!puts(*a&1?"NO":"YES");}
                               ^~~~~
main.c:1:108: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 long a[1<<18];j;main(i){for(;~scanf("%d",a-i--)?:a[++j]?j-a[j]?a[j]^=a[a[j]]^=a[j]^=a[a[j]],~--*a:1:0;);j=!puts(*a&1?"NO":"YES");}
                                                                                                            ^~~~

ソースコード

diff #

long a[1<<18];j;main(i){for(;~scanf("%d",a-i--)?:a[++j]?j-a[j]?a[j]^=a[a[j]]^=a[j]^=a[a[j]],~--*a:1:0;);j=!puts(*a&1?"NO":"YES");}
0