結果
問題 |
No.3295 Buying Bottled Water
|
ユーザー |
![]() |
提出日時 | 2025-10-05 14:32:56 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 12,246 ms |
コンパイル使用メモリ | 398,372 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-10-05 14:33:14 |
合計ジャッジ時間 | 13,416 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
use proconio::input; fn main() { input! { n: i64, } println!( "{}", if (n - 99) < 0 { 0 } else { (n - 99) / 500 + if (n - 99) % 500 == 0 { 0 } else { 1 } } ); }