結果
| 問題 |
No.8100 始業式
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-31 22:39:22 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 131 bytes |
| コンパイル時間 | 312 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 13,312 KB |
| 最終ジャッジ日時 | 2024-09-23 01:28:01 |
| 合計ジャッジ時間 | 630 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
コンパイルメッセージ
Main.rb:6: warning: assigned but unused variable - n Main.rb:3: warning: assigned but unused variable - omochi Syntax OK
ソースコード
def lscan; gets.chomp.split.map(&:to_i); end omochi = 0 gets.to_i.times do n = lscan aa = lscan o = aa.reduce(:+) p o end