結果
| 問題 | No.3295 Buying Bottled Water |
| コンテスト | |
| ユーザー |
テナガザル
|
| 提出日時 | 2025-10-05 13:35:34 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 307µs | |
| コード長 | 206 bytes |
| 記録 | |
| コンパイル時間 | 916 ms |
| コンパイル使用メモリ | 163,680 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-15 11:22:33 |
| 合計ジャッジ時間 | 2,174 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
int n;
cin >> n;
int ans = n / 500;
if (n - ans * 500 >= 100) ++ans;
cout << ans << endl;
}
テナガザル