結果
| 問題 | No.857 素振り |
| コンテスト | |
| ユーザー |
i_mrhj
|
| 提出日時 | 2019-08-10 16:40:26 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 1,000 ms |
| + 735µs | |
| コード長 | 584 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 38,272 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-22 11:24:36 |
| 合計ジャッジ時間 | 1,150 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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