結果

問題 No.857 素振り
ユーザー bal4ubal4u
提出日時 2019-08-09 21:30:37
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 229 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 27,648 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 11:15:26
合計ジャッジ時間 669 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

// yukicoder 857 素振り
// 2019.8.10 bal4u

#include <stdio.h>

int main()
{
	long long X, Y, Z, ans;

	scanf("%lld%lld%lld", &X, &Y, &Z);
	ans = Z;
	if (X <= Z) ans--;
	if (Y <= Z) ans--;
	printf("%lld\n", ans);
	return 0;
}
0