結果

問題 No.857 素振り
ユーザー wipexwipex
提出日時 2019-09-14 13:50:54
言語 Ruby
(3.2.2)
結果
TLE  
実行時間 -
コード長 117 bytes
コンパイル時間 395 ms
コンパイル使用メモリ 11,456 KB
実行使用メモリ 19,732 KB
最終ジャッジ日時 2023-09-19 09:39:36
合計ジャッジ時間 4,200 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
19,732 KB
testcase_01 AC 84 ms
15,056 KB
testcase_02 AC 83 ms
15,060 KB
testcase_03 AC 83 ms
14,984 KB
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

cnt = 0
x,y,z = gets.chomp.split(" ").map(&:to_i)
for i in 1..z do
  next if i == x or i ==y
  cnt +=1
end

puts cnt
0