結果

問題 No.1049 Zero (Exhaust)
ユーザー kotatsugamekotatsugame
提出日時 2020-05-08 23:01:43
言語 Ruby
(3.3.0)
結果
AC  
実行時間 713 ms / 2,000 ms
コード長 81 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 11,508 KB
実行使用メモリ 15,300 KB
最終ジャッジ日時 2023-09-17 06:42:53
合計ジャッジ時間 10,921 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,276 KB
testcase_01 AC 80 ms
15,140 KB
testcase_02 AC 81 ms
15,032 KB
testcase_03 AC 218 ms
15,296 KB
testcase_04 AC 79 ms
14,972 KB
testcase_05 AC 187 ms
15,080 KB
testcase_06 AC 693 ms
15,232 KB
testcase_07 AC 154 ms
15,108 KB
testcase_08 AC 260 ms
15,144 KB
testcase_09 AC 552 ms
15,080 KB
testcase_10 AC 584 ms
15,152 KB
testcase_11 AC 591 ms
15,192 KB
testcase_12 AC 687 ms
15,188 KB
testcase_13 AC 188 ms
15,216 KB
testcase_14 AC 287 ms
15,148 KB
testcase_15 AC 496 ms
15,300 KB
testcase_16 AC 188 ms
15,156 KB
testcase_17 AC 455 ms
15,248 KB
testcase_18 AC 610 ms
15,272 KB
testcase_19 AC 513 ms
15,296 KB
testcase_20 AC 253 ms
15,108 KB
testcase_21 AC 527 ms
15,220 KB
testcase_22 AC 321 ms
15,220 KB
testcase_23 AC 712 ms
15,184 KB
testcase_24 AC 713 ms
15,276 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"P,K="+gets.split*?,
t=b=1
M=10**9+7
K.times{t,b=(t*P+b)%M,(2*b+t)*P%M-b}
p t
0