結果
| 問題 | No.3654 Cup Ramen |
| コンテスト | |
| ユーザー |
tadd
|
| 提出日時 | 2026-08-30 13:51:45 |
| 言語 | Ruby (4.0.6) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 220 bytes |
| 記録 | |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 8,832 KB |
| 実行使用メモリ | 14,720 KB |
| 最終ジャッジ日時 | 2026-08-30 13:52:13 |
| 合計ジャッジ時間 | 3,391 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 14 WA * 6 |
コンパイルメッセージ
Main.rb:7: warning: assigned but unused variable - n Syntax OK
ソースコード
def sgets = gets.strip
def get_int = Integer(sgets)
def get_list = sgets.split
def get_int_list = get_list.map { Integer(_1) }
def puts_yn(b) = puts(b ? 'Yes' : 'No')
n, x = get_int_list
a = get_int_list
puts a.sum - x
tadd