結果

問題 No.623 fudan no modulus to tigau
ユーザー %20%20
提出日時 2017-12-23 06:58:49
言語 Ruby
(3.3.0)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 11,284 KB
実行使用メモリ 15,460 KB
最終ジャッジ日時 2023-08-22 16:10:53
合計ジャッジ時間 2,309 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
15,404 KB
testcase_01 AC 98 ms
15,260 KB
testcase_02 AC 97 ms
15,460 KB
testcase_03 AC 97 ms
15,244 KB
testcase_04 AC 97 ms
15,324 KB
testcase_05 AC 97 ms
15,328 KB
testcase_06 AC 99 ms
15,252 KB
testcase_07 AC 95 ms
15,324 KB
testcase_08 AC 95 ms
15,300 KB
testcase_09 AC 94 ms
15,300 KB
testcase_10 AC 94 ms
15,396 KB
testcase_11 AC 97 ms
15,244 KB
testcase_12 AC 82 ms
15,184 KB
testcase_13 AC 82 ms
15,156 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

r=->{gets.split.map &:to_i}
c=(2..r[][0]).map{r[]}
r[]
r[].map{|x|f=1,x
c.map{|c|t,a,b=c
f<<Z=[a*b=f[b],b*a=f[a],a+b][t-2]%998244353}
p Z}
0