結果

問題 No.1049 Zero (Exhaust)
ユーザー kotatsugamekotatsugame
提出日時 2020-05-08 22:04:49
言語 Ruby
(3.3.0)
結果
AC  
実行時間 724 ms / 2,000 ms
コード長 78 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 11,320 KB
実行使用メモリ 15,456 KB
最終ジャッジ日時 2023-09-17 02:51:45
合計ジャッジ時間 11,115 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
外部呼び出し有り
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,228 KB
testcase_01 AC 85 ms
15,352 KB
testcase_02 AC 86 ms
15,048 KB
testcase_03 AC 218 ms
15,404 KB
testcase_04 AC 84 ms
15,300 KB
testcase_05 AC 194 ms
15,236 KB
testcase_06 AC 695 ms
15,432 KB
testcase_07 AC 162 ms
15,440 KB
testcase_08 AC 266 ms
15,420 KB
testcase_09 AC 567 ms
15,292 KB
testcase_10 AC 591 ms
15,128 KB
testcase_11 AC 595 ms
15,280 KB
testcase_12 AC 689 ms
15,244 KB
testcase_13 AC 195 ms
15,200 KB
testcase_14 AC 300 ms
15,164 KB
testcase_15 AC 500 ms
15,116 KB
testcase_16 AC 196 ms
15,152 KB
testcase_17 AC 463 ms
15,260 KB
testcase_18 AC 609 ms
15,384 KB
testcase_19 AC 517 ms
15,236 KB
testcase_20 AC 261 ms
15,416 KB
testcase_21 AC 534 ms
15,456 KB
testcase_22 AC 330 ms
15,376 KB
testcase_23 AC 716 ms
15,092 KB
testcase_24 AC 724 ms
15,392 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval'P,K='+`tr \\  ,`
t=b=1
M=10**9+7
K.times{t,b=(t*P+b)%M,(2*b+t)*P%M-b}
p t
0