結果

問題 No.1049 Zero (Exhaust)
ユーザー kotatsugamekotatsugame
提出日時 2020-05-08 21:56:16
言語 Ruby
(3.3.0)
結果
AC  
実行時間 351 ms / 2,000 ms
コード長 82 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 11,176 KB
実行使用メモリ 15,476 KB
最終ジャッジ日時 2023-09-17 02:43:10
合計ジャッジ時間 7,376 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
外部呼び出し有り
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,280 KB
testcase_01 AC 86 ms
15,072 KB
testcase_02 AC 86 ms
15,080 KB
testcase_03 AC 266 ms
15,232 KB
testcase_04 AC 85 ms
15,084 KB
testcase_05 AC 233 ms
15,256 KB
testcase_06 AC 350 ms
15,196 KB
testcase_07 AC 121 ms
15,476 KB
testcase_08 AC 164 ms
15,224 KB
testcase_09 AC 282 ms
15,112 KB
testcase_10 AC 303 ms
15,224 KB
testcase_11 AC 302 ms
15,412 KB
testcase_12 AC 337 ms
15,208 KB
testcase_13 AC 142 ms
15,248 KB
testcase_14 AC 198 ms
15,388 KB
testcase_15 AC 269 ms
15,348 KB
testcase_16 AC 235 ms
15,268 KB
testcase_17 AC 241 ms
15,204 KB
testcase_18 AC 310 ms
15,372 KB
testcase_19 AC 272 ms
15,076 KB
testcase_20 AC 162 ms
15,240 KB
testcase_21 AC 276 ms
15,204 KB
testcase_22 AC 193 ms
15,236 KB
testcase_23 AC 349 ms
15,260 KB
testcase_24 AC 351 ms
15,292 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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