結果

問題 No.462 6日知らずのコンピュータ
ユーザー hogeover30hogeover30
提出日時 2016-12-30 03:33:07
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 146 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-05-09 07:35:31
合計ジャッジ時間 9,535 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
12,416 KB
testcase_01 AC 84 ms
12,160 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 82 ms
12,160 KB
testcase_07 AC 88 ms
12,160 KB
testcase_08 AC 85 ms
12,160 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 84 ms
12,160 KB
testcase_12 AC 84 ms
12,160 KB
testcase_13 WA -
testcase_14 AC 83 ms
12,288 KB
testcase_15 AC 82 ms
12,160 KB
testcase_16 AC 82 ms
12,288 KB
testcase_17 AC 82 ms
12,160 KB
testcase_18 WA -
testcase_19 AC 84 ms
12,160 KB
testcase_20 AC 84 ms
12,288 KB
testcase_21 AC 83 ms
12,416 KB
testcase_22 AC 87 ms
12,288 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 87 ms
12,416 KB
testcase_27 AC 83 ms
12,416 KB
testcase_28 WA -
testcase_29 AC 84 ms
12,160 KB
testcase_30 AC 87 ms
12,288 KB
testcase_31 WA -
testcase_32 AC 84 ms
12,416 KB
testcase_33 WA -
testcase_34 AC 85 ms
12,160 KB
testcase_35 AC 84 ms
12,288 KB
testcase_36 WA -
testcase_37 AC 83 ms
12,288 KB
testcase_38 WA -
testcase_39 AC 86 ms
12,160 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 85 ms
12,160 KB
testcase_43 AC 85 ms
12,416 KB
testcase_44 WA -
testcase_45 WA -
testcase_46 AC 84 ms
12,416 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 95 ms
12,160 KB
testcase_50 AC 84 ms
12,160 KB
testcase_51 AC 80 ms
12,416 KB
testcase_52 AC 84 ms
12,416 KB
testcase_53 AC 83 ms
12,160 KB
testcase_54 AC 85 ms
12,160 KB
testcase_55 AC 86 ms
12,160 KB
testcase_56 AC 82 ms
12,160 KB
testcase_57 AC 82 ms
12,160 KB
testcase_58 AC 85 ms
12,160 KB
testcase_59 AC 85 ms
12,160 KB
testcase_60 AC 84 ms
12,416 KB
testcase_61 AC 83 ms
12,288 KB
testcase_62 AC 83 ms
12,288 KB
testcase_63 AC 83 ms
12,160 KB
testcase_64 AC 83 ms
12,160 KB
testcase_65 AC 78 ms
12,288 KB
testcase_66 AC 80 ms
12,160 KB
testcase_67 AC 80 ms
12,160 KB
testcase_68 AC 83 ms
12,160 KB
testcase_69 AC 86 ms
12,160 KB
testcase_70 AC 86 ms
12,160 KB
testcase_71 AC 81 ms
12,160 KB
testcase_72 AC 85 ms
12,288 KB
testcase_73 AC 84 ms
12,160 KB
testcase_74 AC 82 ms
12,288 KB
testcase_75 AC 86 ms
12,160 KB
testcase_76 AC 82 ms
12,288 KB
testcase_77 AC 78 ms
12,160 KB
testcase_78 AC 83 ms
12,288 KB
testcase_79 AC 83 ms
12,160 KB
testcase_80 AC 84 ms
12,288 KB
testcase_81 AC 81 ms
12,288 KB
testcase_82 AC 80 ms
12,160 KB
testcase_83 AC 79 ms
12,288 KB
testcase_84 AC 82 ms
12,160 KB
testcase_85 AC 84 ms
12,288 KB
testcase_86 AC 82 ms
12,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - k
Syntax OK

ソースコード

diff #

n,k,*a=`dd`.split.map &:to_i
F=->x{x<1?0:F[x/2]+x%2}
[0,*a.sort,2**n-r=1].each_cons(2){|x,y|r*=x&y<x||y^x<1?0:(1..F[y^x]).inject(:*)}
p r%=10**9+7
0