提出 #21638299
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = (a); i < (b); ++i)
#define per(i, a, b) for(int i = (b)-1; i >= (a); --i)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define fst first
#define snd second
template<class T> bool ckmin(T& a, const T& b) { return b < a ? a = b, 1 : 0; }
template<class T> bool ckmax(T& a, const T& b) { return a < b ? a = b, 1 : 0; }
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<pii> vii;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int main() {
cin.tie(0)->sync_with_stdio(0);
cin.exceptions(cin.failbit);
int n;
cin >> n;
cout << max(0, n-1) << '\n';
}
提出情報
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | sample1.txt, sample2.txt, sample3.txt |
| All | 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 10.txt | AC | 8 ms | 3652 KiB |
| 11.txt | AC | 2 ms | 3608 KiB |
| 12.txt | AC | 2 ms | 3540 KiB |
| 13.txt | AC | 2 ms | 3476 KiB |
| 14.txt | AC | 2 ms | 3528 KiB |
| 15.txt | AC | 2 ms | 3604 KiB |
| 4.txt | AC | 2 ms | 3528 KiB |
| 5.txt | AC | 5 ms | 3640 KiB |
| 6.txt | AC | 2 ms | 3492 KiB |
| 7.txt | AC | 3 ms | 3572 KiB |
| 8.txt | AC | 2 ms | 3536 KiB |
| 9.txt | AC | 2 ms | 3572 KiB |
| sample1.txt | AC | 2 ms | 3644 KiB |
| sample2.txt | AC | 2 ms | 3540 KiB |
| sample3.txt | AC | 2 ms | 3544 KiB |