結果

問題 No.100 直列あみだくじ
ユーザー testestesttestestest
提出日時 2017-03-01 04:44:41
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 114 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 11,376 KB
実行使用メモリ 15,420 KB
最終ジャッジ日時 2023-09-02 20:14:40
合計ジャッジ時間 5,679 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,116 KB
testcase_01 AC 81 ms
15,136 KB
testcase_02 AC 81 ms
15,056 KB
testcase_03 AC 80 ms
15,160 KB
testcase_04 AC 81 ms
15,088 KB
testcase_05 AC 80 ms
15,368 KB
testcase_06 WA -
testcase_07 AC 80 ms
15,124 KB
testcase_08 AC 80 ms
15,048 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 79 ms
15,164 KB
testcase_12 AC 79 ms
15,332 KB
testcase_13 AC 79 ms
15,128 KB
testcase_14 AC 78 ms
15,404 KB
testcase_15 AC 79 ms
15,124 KB
testcase_16 AC 78 ms
15,296 KB
testcase_17 AC 79 ms
15,048 KB
testcase_18 AC 80 ms
15,280 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 79 ms
15,188 KB
testcase_23 AC 80 ms
15,288 KB
testcase_24 WA -
testcase_25 AC 81 ms
15,292 KB
testcase_26 WA -
testcase_27 AC 82 ms
15,168 KB
testcase_28 AC 80 ms
15,044 KB
testcase_29 AC 81 ms
15,044 KB
testcase_30 AC 82 ms
15,364 KB
testcase_31 WA -
testcase_32 AC 80 ms
15,368 KB
testcase_33 AC 82 ms
15,308 KB
testcase_34 AC 81 ms
15,124 KB
testcase_35 AC 81 ms
15,028 KB
testcase_36 WA -
testcase_37 AC 81 ms
15,344 KB
testcase_38 AC 80 ms
15,252 KB
testcase_39 AC 80 ms
15,176 KB
testcase_40 WA -
testcase_41 AC 80 ms
15,128 KB
testcase_42 AC 82 ms
15,304 KB
testcase_43 AC 80 ms
15,124 KB
testcase_44 AC 81 ms
15,260 KB
testcase_45 AC 83 ms
15,172 KB
testcase_46 AC 83 ms
15,036 KB
testcase_47 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,*d=$<.read.split
n.to_i.times{|i|c=1;o=i;(c+=1;d[o],o=p,i.to_i-1)while i=d[o];$*[c]^=c&1}
puts$*.any?? :No:'Yes'
0