結果
| 問題 |
No.3295 Buying Bottled Water
|
| コンテスト | |
| ユーザー |
mele
|
| 提出日時 | 2025-10-05 13:40:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 753 bytes |
| コンパイル時間 | 1,710 ms |
| コンパイル使用メモリ | 194,112 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-10-05 13:42:02 |
| 合計ジャッジ時間 | 2,626 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define FOR(i,a,b) for (ll i = (a); i < (b); i++)
#define FFOR(i,a,b) for (ll i = (b); i >= (a); i--)
#define rep(i,n) FOR(i,0,n)
#define rrep(i,n) FFOR(i,0,n)
#define YES cout << "Yes" << endl
#define NO cout << "No" << endl
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
const long long INF = 1LL<<60;
const int MOD = 100000000;
int main(){
int n,a=0;
cin>>n;
rep(i,n){
a=i*500;
if(n-a<100){
cout<<i<<endl;
break;
}
}
return 0;
}
mele