結果

問題 No.1081 和の和
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2021-05-17 04:40:06
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 98 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-04-15 17:36:16
合計ジャッジ時間 1,758 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
12,032 KB
testcase_01 AC 91 ms
12,288 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
vv = gets.split.map(&:to_i)
puts (vv.first + vv[1..-2].sum*(vv.size-1) + vv.last) % (10**9+7)
0