結果
問題 |
No.3295 Buying Bottled Water
|
ユーザー |
|
提出日時 | 2025-10-05 13:34:32 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 96 ms / 2,000 ms |
コード長 | 149 bytes |
コンパイル時間 | 68 ms |
コンパイル使用メモリ | 8,064 KB |
実行使用メモリ | 13,056 KB |
最終ジャッジ日時 | 2025-10-05 13:36:01 |
合計ジャッジ時間 | 2,449 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
コンパイルメッセージ
Syntax OK
ソースコード
# frozen_string_literal: true in_n = gets.chomp.to_i result = in_n / 500 remaining = in_n % 500 if remaining >= 100 result += 1 end puts result