結果

問題 No.1986 Yummy
ユーザー simansiman
提出日時 2022-07-05 17:18:04
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 82 bytes
コンパイル時間 470 ms
コンパイル使用メモリ 11,564 KB
実行使用メモリ 15,320 KB
最終ジャッジ日時 2023-08-22 06:08:29
合計ジャッジ時間 4,434 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 84 ms
15,092 KB
testcase_02 AC 83 ms
15,044 KB
testcase_03 WA -
testcase_04 AC 80 ms
15,184 KB
testcase_05 AC 83 ms
15,300 KB
testcase_06 AC 81 ms
15,104 KB
testcase_07 AC 82 ms
15,244 KB
testcase_08 AC 81 ms
15,140 KB
testcase_09 WA -
testcase_10 AC 81 ms
15,264 KB
testcase_11 AC 81 ms
15,164 KB
testcase_12 AC 80 ms
15,140 KB
testcase_13 WA -
testcase_14 AC 82 ms
15,320 KB
testcase_15 WA -
testcase_16 AC 83 ms
15,084 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 82 ms
15,048 KB
testcase_20 AC 83 ms
15,156 KB
testcase_21 AC 83 ms
15,188 KB
testcase_22 AC 83 ms
15,132 KB
testcase_23 AC 83 ms
15,284 KB
testcase_24 AC 82 ms
15,152 KB
testcase_25 AC 82 ms
15,076 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i

if N % 2 == 0
  puts N / 2
else
  puts Rational(N, 2).ceil / 2
end
0