提出 #1031011


ソースコード 拡げる

n, a, b = gets.split(" ").map {|i| i.to_i}

result = ((a + b) - n) > 0 ? ((a + b) - n) : 0
puts result

提出情報

提出日時
問題 A - 動画検索
ユーザ rinkou
言語 Ruby (2.3.3)
得点 100
コード長 105 Byte
結果 AC
実行時間 11 ms
メモリ 1788 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 9
セット名 テストケース
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, hand_01.txt, hand_02.txt, hand_03.txt, random_01.txt, random_02.txt, random_03.txt
ケース名 結果 実行時間 メモリ
hand_01.txt AC 11 ms 1788 KiB
hand_02.txt AC 11 ms 1788 KiB
hand_03.txt AC 11 ms 1788 KiB
random_01.txt AC 11 ms 1788 KiB
random_02.txt AC 11 ms 1788 KiB
random_03.txt AC 11 ms 1788 KiB
sample_01.txt AC 11 ms 1788 KiB
sample_02.txt AC 11 ms 1788 KiB
sample_03.txt AC 11 ms 1788 KiB