結果

問題 No.2513 Power Eraser
ユーザー 👑 amentorimaruamentorimaru
提出日時 2023-06-13 23:14:13
言語 Ruby
(3.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 174 bytes
コンパイル時間 1,060 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 23,656 KB
最終ジャッジ日時 2023-10-20 20:50:51
合計ジャッジ時間 15,497 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
16,072 KB
testcase_01 AC 87 ms
16,072 KB
testcase_02 AC 86 ms
16,072 KB
testcase_03 AC 111 ms
16,072 KB
testcase_04 AC 606 ms
16,092 KB
testcase_05 AC 131 ms
16,072 KB
testcase_06 AC 984 ms
16,128 KB
testcase_07 AC 323 ms
16,072 KB
testcase_08 AC 891 ms
16,120 KB
testcase_09 AC 1,300 ms
16,356 KB
testcase_10 AC 783 ms
16,116 KB
testcase_11 AC 121 ms
16,072 KB
testcase_12 AC 528 ms
16,084 KB
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
7_evil_case_1.txt -- -
7_evil_case_2.txt -- -
7_evil_case_3.txt -- -
7_evil_case_4.txt -- -
7_evil_case_5.txt -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.chomp.to_i
A = gets.chomp.split.map(&:to_i)

ans = 1

(0...N).each do |i|
  ((i + 1)...N).each do |j|
    ans = (ans * (A[i] - A[j])) % 998244353
  end
end

puts ans
0