結果

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

テストケース

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

ソースコード

diff #

n,k,*a=$<.read.split.map &:to_i
r=0
k>0&&a.inject(:&)<a[0]||[0,*a,2**n-r=1].sort.map{|e|("%b"%e).count ?1}.uniq.each_cons(2){|x,y|r=(1..y-x).inject(:*)*r%(10**9+7)}
p r
0