結果
問題 |
No.857 素振り
|
ユーザー |
![]() |
提出日時 | 2019-08-09 21:53:16 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 596 bytes |
コンパイル時間 | 2,036 ms |
コンパイル使用メモリ | 191,096 KB |
最終ジャッジ日時 | 2025-01-07 11:19:32 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | AC * 1 WA * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<int, int>; using vi = vector<int>; using vl = vector<ll>; #define rep(i, n) for(ll i = 0;i < n;i++) #define all(i) i.begin(), i.end() template<class T, class U> bool cmax(T& a, U b) { if (a<b) {a = b; return true;} else return false; } template<class T, class U> bool cmin(T& a, U b) { if (a>b) {a = b; return true;} else return false; } int main() { cin.tie(0); ios::sync_with_stdio(false); ll x, y, z; cin >> x >> y >> z; ll ans = z; if (x <= z) ans--; if (y <= z) ans--; cout << z << endl; }