結果
問題 |
No.857 素振り
|
ユーザー |
![]() |
提出日時 | 2020-01-05 15:25:18 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 364 bytes |
コンパイル時間 | 1,842 ms |
コンパイル使用メモリ | 192,276 KB |
最終ジャッジ日時 | 2025-01-08 16:23:55 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<n;i++) typedef long long ll; const int MOD = (int)(1e9+7); const int INF = (int)(1e9+1e7); const ll INFL = (ll)(1e17); const double EPS = 1e-8; using namespace std; int main() { ll x,y,z; cin >> x >> y >> z; ll ans = z; if(x<=z){ans--;} if(y!=x&&y<=z){ans--;} cout << ans << endl; }