結果
| 問題 |
No.857 素振り
|
| コンテスト | |
| ユーザー |
i_mrhj
|
| 提出日時 | 2019-08-10 16:40:26 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 584 bytes |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 29,184 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-19 17:12:10 |
| 合計ジャッジ時間 | 1,023 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) > (b) ? (b) : (a))
#define abs(x) ((x) > 0 ? (x) : -(x))
#define rep(i, n) for(int i = 0; i < (n); i++)
#define MOD 1000000007 //10^9 + 7
#define endl printf("\n")
typedef long long ll;
#define MAX_N (1 << 17)
int
main(int argc, char **argv)
{
ll x, y, z;
scanf("%lld %lld %lld", &x, &y, &z);
ll ans = z;
if (x <= z) ans -= 1;
if (y <= z) ans -= 1;
printf("%lld\n", ans);
return 0;
}
i_mrhj