結果
問題 | No.857 素振り |
ユーザー |
|
提出日時 | 2019-08-16 21:19:58 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 403 bytes |
コンパイル時間 | 1,243 ms |
コンパイル使用メモリ | 159,052 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 14:50:42 |
合計ジャッジ時間 | 1,730 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
/** @file main.cpp @title No.857 素振り @url https://yukicoder.me/problems/no/857 **/ #include <bits/stdc++.h> using namespace std; typedef long long LL; #define ALL(obj) (obj).begin(), (obj).end() #define REP(i, N) for (int i = 0; i < (N); ++i) int main() { LL X, Y, Z; cin >> X >> Y >> Z; LL ans = Z; if (X <= Z) ans--; if (Y <= Z) ans--; cout << ans << endl; return 0; }