結果
問題 | No.97 最大の値を求めるくえり |
ユーザー | mmmppp |
提出日時 | 2017-02-28 20:29:23 |
言語 | Ruby (3.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 210 bytes |
コンパイル時間 | 48 ms |
コンパイル使用メモリ | 11,480 KB |
実行使用メモリ | 118,312 KB |
最終ジャッジ日時 | 2023-09-02 18:00:52 |
合計ジャッジ時間 | 6,921 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | TLE | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
コンパイルメッセージ
Syntax OK
ソースコード
a=[123456789,362436069,521288629,88675123] A=->{t=a[0]^a[0]<<11 a.shift a+=[w=a[-1]^(a[-1]>>19)^t^t>>8] w} d=100003 N,Q,*q=$<.read.split.map &:to_i r=N.times.map{A[]%d} Q.times{|i|p n.times{|j|r[j]*q[i]%d}.max}