結果
| 問題 | No.3654 Cup Ramen |
| コンテスト | |
| ユーザー |
tadd
|
| 提出日時 | 2026-08-30 13:54:42 |
| 言語 | Ruby (4.0.6) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| + 788µs | |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 10 ms |
| コンパイル使用メモリ | 8,576 KB |
| 実行使用メモリ | 14,464 KB |
| 最終ジャッジ日時 | 2026-08-30 13:54:47 |
| 合計ジャッジ時間 | 2,637 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
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
d = a.sum - x
puts [d, 0].max
tadd