結果

問題 No.946 箱箱箱
ユーザー 👑 hos.lyrichos.lyric
提出日時 2019-12-09 03:30:34
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,294 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 11,508 KB
実行使用メモリ 69,824 KB
最終ジャッジ日時 2023-09-09 10:06:45
合計ジャッジ時間 53,355 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,172 KB
testcase_01 AC 82 ms
15,080 KB
testcase_02 AC 82 ms
15,124 KB
testcase_03 AC 1,256 ms
69,668 KB
testcase_04 AC 1,278 ms
69,504 KB
testcase_05 AC 81 ms
15,220 KB
testcase_06 AC 1,284 ms
69,552 KB
testcase_07 AC 1,200 ms
69,432 KB
testcase_08 AC 1,143 ms
69,552 KB
testcase_09 AC 1,124 ms
69,460 KB
testcase_10 AC 1,242 ms
69,336 KB
testcase_11 AC 81 ms
15,036 KB
testcase_12 AC 1,117 ms
69,524 KB
testcase_13 AC 1,141 ms
69,600 KB
testcase_14 AC 1,221 ms
69,524 KB
testcase_15 AC 1,220 ms
69,532 KB
testcase_16 AC 1,250 ms
69,676 KB
testcase_17 AC 1,228 ms
69,456 KB
testcase_18 AC 1,223 ms
69,632 KB
testcase_19 AC 1,119 ms
69,456 KB
testcase_20 AC 85 ms
15,484 KB
testcase_21 AC 1,203 ms
69,460 KB
testcase_22 AC 1,280 ms
69,300 KB
testcase_23 AC 1,218 ms
69,420 KB
testcase_24 AC 1,220 ms
69,612 KB
testcase_25 AC 1,114 ms
69,504 KB
testcase_26 AC 1,240 ms
69,460 KB
testcase_27 AC 1,220 ms
69,548 KB
testcase_28 AC 1,239 ms
69,300 KB
testcase_29 AC 1,160 ms
69,636 KB
testcase_30 AC 1,226 ms
69,632 KB
testcase_31 AC 1,233 ms
69,536 KB
testcase_32 AC 1,174 ms
69,824 KB
testcase_33 AC 1,220 ms
69,536 KB
testcase_34 AC 1,165 ms
69,584 KB
testcase_35 AC 1,224 ms
69,512 KB
testcase_36 AC 1,284 ms
69,508 KB
testcase_37 AC 1,277 ms
69,680 KB
testcase_38 AC 1,117 ms
69,456 KB
testcase_39 AC 1,191 ms
69,816 KB
testcase_40 AC 1,194 ms
69,704 KB
testcase_41 AC 1,237 ms
69,356 KB
testcase_42 AC 1,213 ms
69,540 KB
testcase_43 AC 1,282 ms
69,472 KB
testcase_44 AC 1,117 ms
69,376 KB
testcase_45 AC 1,277 ms
69,512 KB
testcase_46 AC 1,294 ms
69,600 KB
testcase_47 AC 78 ms
15,076 KB
testcase_48 AC 80 ms
15,256 KB
testcase_49 AC 80 ms
15,152 KB
testcase_50 AC 82 ms
15,076 KB
testcase_51 AC 81 ms
15,304 KB
testcase_52 AC 80 ms
15,132 KB
testcase_53 AC 81 ms
15,252 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=$<.map &:to_i
n=a[0]
f={}
n.downto(0){|i|g={};s=0;(i+1).upto(n){|j|s^=a[j];g[s^f[j]]=1};n.downto(0){|x|g[x]||f[i]=x}}
print :Taka,f[0]>0?:h: :n,:ashi
0