結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
12,160 KB
testcase_01 AC 84 ms
12,160 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 WA -
testcase_07 AC 81 ms
12,160 KB
testcase_08 AC 83 ms
12,288 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 83 ms
12,160 KB
testcase_12 AC 81 ms
12,160 KB
testcase_13 RE -
testcase_14 AC 86 ms
12,288 KB
testcase_15 AC 85 ms
12,032 KB
testcase_16 AC 84 ms
12,160 KB
testcase_17 AC 83 ms
12,160 KB
testcase_18 RE -
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 77 ms
12,160 KB
testcase_30 WA -
testcase_31 RE -
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 80 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 84 ms
12,288 KB
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 84 ms
12,160 KB
testcase_50 AC 80 ms
12,032 KB
testcase_51 AC 81 ms
12,288 KB
testcase_52 AC 85 ms
12,288 KB
testcase_53 AC 88 ms
12,160 KB
testcase_54 AC 79 ms
12,160 KB
testcase_55 AC 83 ms
12,160 KB
testcase_56 AC 82 ms
12,160 KB
testcase_57 AC 85 ms
12,288 KB
testcase_58 AC 85 ms
12,160 KB
testcase_59 AC 83 ms
12,160 KB
testcase_60 AC 80 ms
12,288 KB
testcase_61 AC 86 ms
12,288 KB
testcase_62 AC 86 ms
12,160 KB
testcase_63 AC 82 ms
12,288 KB
testcase_64 AC 85 ms
12,160 KB
testcase_65 AC 86 ms
12,288 KB
testcase_66 AC 86 ms
12,160 KB
testcase_67 AC 85 ms
12,160 KB
testcase_68 AC 82 ms
12,160 KB
testcase_69 AC 87 ms
12,160 KB
testcase_70 AC 86 ms
12,160 KB
testcase_71 AC 86 ms
12,160 KB
testcase_72 AC 83 ms
12,160 KB
testcase_73 AC 82 ms
12,288 KB
testcase_74 AC 81 ms
12,160 KB
testcase_75 AC 81 ms
12,160 KB
testcase_76 AC 81 ms
12,160 KB
testcase_77 AC 82 ms
12,288 KB
testcase_78 AC 80 ms
12,288 KB
testcase_79 AC 81 ms
12,288 KB
testcase_80 AC 84 ms
12,160 KB
testcase_81 AC 83 ms
12,160 KB
testcase_82 AC 84 ms
12,288 KB
testcase_83 AC 82 ms
12,032 KB
testcase_84 AC 82 ms
12,160 KB
testcase_85 AC 84 ms
12,160 KB
testcase_86 AC 85 ms
12,160 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}.each_cons(2){|x,y|r=(1..y-x).inject(:*)*r%(10**9+7)}
p r
0