提出 #35814926


ソースコード 拡げる

VERY_LARGE_PRIME = 10 ** 9 + 7
n = gets.chomp.to_i

sum = 1
n.times do
  sum *= gets.chomp.split.map(&:to_i).sum
  sum %= VERY_LARGE_PRIME
end

puts sum

提出情報

提出日時
問題 052 - Dice Product(★3)
ユーザ thatblue
言語 Ruby (2.7.1)
得点 3
コード長 163 Byte
結果 AC
実行時間 61 ms
メモリ 14356 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 3 / 3
結果
AC × 3
AC × 37
セット名 テストケース
Sample Sample_1.txt, Sample_2.txt, Sample_3.txt
All Hand_1.txt, Hand_2.txt, Hand_3.txt, Hand_4.txt, Max_Random_01.txt, Max_Random_02.txt, Max_Random_03.txt, Max_Random_04.txt, Max_Random_05.txt, Max_Random_06.txt, Max_Random_07.txt, Max_Random_08.txt, Max_Random_09.txt, Max_Random_10.txt, Max_Random_11.txt, Max_Random_12.txt, Max_Random_13.txt, Max_Random_14.txt, Max_Random_15.txt, Random_01.txt, Random_02.txt, Random_03.txt, Random_04.txt, Random_05.txt, Random_06.txt, Random_07.txt, Random_08.txt, Random_09.txt, Random_10.txt, Random_11.txt, Random_12.txt, Random_13.txt, Random_14.txt, Random_15.txt, Sample_1.txt, Sample_2.txt, Sample_3.txt
ケース名 結果 実行時間 メモリ
Hand_1.txt AC 58 ms 14120 KiB
Hand_2.txt AC 56 ms 14076 KiB
Hand_3.txt AC 56 ms 14192 KiB
Hand_4.txt AC 55 ms 14128 KiB
Max_Random_01.txt AC 58 ms 14108 KiB
Max_Random_02.txt AC 55 ms 14192 KiB
Max_Random_03.txt AC 56 ms 14028 KiB
Max_Random_04.txt AC 56 ms 14120 KiB
Max_Random_05.txt AC 56 ms 14244 KiB
Max_Random_06.txt AC 57 ms 14284 KiB
Max_Random_07.txt AC 56 ms 14100 KiB
Max_Random_08.txt AC 56 ms 14060 KiB
Max_Random_09.txt AC 56 ms 14224 KiB
Max_Random_10.txt AC 58 ms 14156 KiB
Max_Random_11.txt AC 59 ms 14032 KiB
Max_Random_12.txt AC 56 ms 14256 KiB
Max_Random_13.txt AC 55 ms 14116 KiB
Max_Random_14.txt AC 57 ms 14204 KiB
Max_Random_15.txt AC 56 ms 14156 KiB
Random_01.txt AC 60 ms 14356 KiB
Random_02.txt AC 56 ms 14232 KiB
Random_03.txt AC 51 ms 13960 KiB
Random_04.txt AC 56 ms 14192 KiB
Random_05.txt AC 55 ms 14136 KiB
Random_06.txt AC 56 ms 14156 KiB
Random_07.txt AC 56 ms 14232 KiB
Random_08.txt AC 55 ms 14132 KiB
Random_09.txt AC 58 ms 14124 KiB
Random_10.txt AC 56 ms 14180 KiB
Random_11.txt AC 57 ms 14156 KiB
Random_12.txt AC 58 ms 14156 KiB
Random_13.txt AC 56 ms 14100 KiB
Random_14.txt AC 57 ms 14236 KiB
Random_15.txt AC 54 ms 14044 KiB
Sample_1.txt AC 55 ms 14064 KiB
Sample_2.txt AC 61 ms 14148 KiB
Sample_3.txt AC 56 ms 14112 KiB