結果

問題 No.946 箱箱箱
ユーザー 👑 hos.lyrichos.lyric
提出日時 2019-12-09 03:31:30
言語 Ruby
(3.2.2)
結果
AC  
実行時間 1,289 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 570 ms
コンパイル使用メモリ 11,500 KB
実行使用メモリ 69,728 KB
最終ジャッジ日時 2023-09-09 10:10:10
合計ジャッジ時間 53,737 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,196 KB
testcase_01 AC 81 ms
15,112 KB
testcase_02 AC 80 ms
15,112 KB
testcase_03 AC 1,257 ms
69,552 KB
testcase_04 AC 1,280 ms
69,564 KB
testcase_05 AC 81 ms
15,280 KB
testcase_06 AC 1,289 ms
69,560 KB
testcase_07 AC 1,203 ms
69,624 KB
testcase_08 AC 1,144 ms
69,516 KB
testcase_09 AC 1,124 ms
69,424 KB
testcase_10 AC 1,237 ms
69,360 KB
testcase_11 AC 81 ms
15,284 KB
testcase_12 AC 1,118 ms
69,428 KB
testcase_13 AC 1,143 ms
69,460 KB
testcase_14 AC 1,204 ms
69,424 KB
testcase_15 AC 1,215 ms
69,512 KB
testcase_16 AC 1,245 ms
69,536 KB
testcase_17 AC 1,234 ms
69,440 KB
testcase_18 AC 1,224 ms
69,496 KB
testcase_19 AC 1,119 ms
69,380 KB
testcase_20 AC 85 ms
15,424 KB
testcase_21 AC 1,200 ms
69,524 KB
testcase_22 AC 1,229 ms
69,516 KB
testcase_23 AC 1,224 ms
69,512 KB
testcase_24 AC 1,201 ms
69,336 KB
testcase_25 AC 1,117 ms
69,580 KB
testcase_26 AC 1,241 ms
69,220 KB
testcase_27 AC 1,219 ms
69,520 KB
testcase_28 AC 1,241 ms
69,688 KB
testcase_29 AC 1,163 ms
69,364 KB
testcase_30 AC 1,222 ms
69,424 KB
testcase_31 AC 1,230 ms
69,524 KB
testcase_32 AC 1,180 ms
69,552 KB
testcase_33 AC 1,227 ms
69,472 KB
testcase_34 AC 1,178 ms
69,424 KB
testcase_35 AC 1,232 ms
69,440 KB
testcase_36 AC 1,285 ms
69,420 KB
testcase_37 AC 1,279 ms
69,316 KB
testcase_38 AC 1,127 ms
69,552 KB
testcase_39 AC 1,198 ms
69,556 KB
testcase_40 AC 1,202 ms
69,728 KB
testcase_41 AC 1,238 ms
69,632 KB
testcase_42 AC 1,222 ms
69,580 KB
testcase_43 AC 1,277 ms
69,476 KB
testcase_44 AC 1,117 ms
69,488 KB
testcase_45 AC 1,277 ms
69,488 KB
testcase_46 AC 1,277 ms
69,460 KB
testcase_47 AC 81 ms
15,192 KB
testcase_48 AC 80 ms
15,192 KB
testcase_49 AC 81 ms
15,176 KB
testcase_50 AC 83 ms
15,084 KB
testcase_51 AC 81 ms
15,276 KB
testcase_52 AC 80 ms
15,160 KB
testcase_53 AC 80 ms
15,340 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