結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,112 KB
testcase_01 AC 80 ms
15,240 KB
testcase_02 AC 79 ms
15,228 KB
testcase_03 AC 1,245 ms
69,288 KB
testcase_04 AC 1,279 ms
69,676 KB
testcase_05 AC 77 ms
15,024 KB
testcase_06 AC 1,288 ms
69,464 KB
testcase_07 AC 1,196 ms
69,496 KB
testcase_08 AC 1,145 ms
69,472 KB
testcase_09 AC 1,113 ms
69,648 KB
testcase_10 AC 1,237 ms
69,448 KB
testcase_11 AC 79 ms
15,180 KB
testcase_12 AC 1,115 ms
69,412 KB
testcase_13 AC 1,149 ms
69,172 KB
testcase_14 AC 1,204 ms
69,432 KB
testcase_15 AC 1,213 ms
69,552 KB
testcase_16 AC 1,250 ms
69,420 KB
testcase_17 AC 1,227 ms
69,476 KB
testcase_18 AC 1,224 ms
69,672 KB
testcase_19 AC 1,115 ms
69,424 KB
testcase_20 AC 82 ms
15,544 KB
testcase_21 AC 1,194 ms
69,272 KB
testcase_22 AC 1,227 ms
69,632 KB
testcase_23 AC 1,222 ms
69,532 KB
testcase_24 AC 1,196 ms
69,504 KB
testcase_25 AC 1,117 ms
69,380 KB
testcase_26 AC 1,236 ms
69,616 KB
testcase_27 AC 1,214 ms
69,472 KB
testcase_28 AC 1,240 ms
69,476 KB
testcase_29 AC 1,160 ms
69,568 KB
testcase_30 AC 1,227 ms
69,564 KB
testcase_31 AC 1,225 ms
69,616 KB
testcase_32 AC 1,176 ms
69,420 KB
testcase_33 AC 1,215 ms
69,640 KB
testcase_34 AC 1,170 ms
69,640 KB
testcase_35 AC 1,237 ms
69,580 KB
testcase_36 AC 1,279 ms
69,572 KB
testcase_37 AC 1,278 ms
69,492 KB
testcase_38 AC 1,118 ms
69,476 KB
testcase_39 AC 1,188 ms
69,640 KB
testcase_40 AC 1,192 ms
69,484 KB
testcase_41 AC 1,235 ms
69,388 KB
testcase_42 AC 1,219 ms
69,564 KB
testcase_43 AC 1,279 ms
69,472 KB
testcase_44 AC 1,116 ms
69,488 KB
testcase_45 AC 1,276 ms
69,468 KB
testcase_46 AC 1,284 ms
69,476 KB
testcase_47 AC 80 ms
15,296 KB
testcase_48 AC 78 ms
15,232 KB
testcase_49 AC 79 ms
15,048 KB
testcase_50 AC 79 ms
15,192 KB
testcase_51 AC 78 ms
15,072 KB
testcase_52 AC 80 ms
15,040 KB
testcase_53 AC 79 ms
15,104 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