結果

問題 No.857 素振り
ユーザー wipexwipex
提出日時 2019-09-14 13:57:30
言語 Ruby
(3.2.2)
結果
WA  
実行時間 -
コード長 89 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 11,248 KB
実行使用メモリ 15,296 KB
最終ジャッジ日時 2023-09-19 09:49:03
合計ジャッジ時間 2,366 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,208 KB
testcase_01 AC 85 ms
14,992 KB
testcase_02 WA -
testcase_03 AC 83 ms
15,072 KB
testcase_04 AC 83 ms
15,100 KB
testcase_05 AC 83 ms
15,068 KB
testcase_06 AC 85 ms
15,280 KB
testcase_07 WA -
testcase_08 AC 85 ms
15,244 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - cnt
Syntax OK

ソースコード

diff #

cnt = 0
x,y,z = gets.chomp.split(" ").map(&:to_i)

z=z-1  if x<=z
z=z-1  if y<=z

puts z
0