結果

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

ソースコード

diff #

#include <iostream>
#define llint long long

using namespace std;

llint x, y, z;

int main(void)
{
	cin >> x >> y >> z;
	llint ans = z;
	if(z >= x) ans--;
	if(z >= y) ans--;
	cout << ans << endl;
	return 0;
}
0