結果

問題 No.857 素振り
コンテスト
ユーザー QCFium
提出日時 2019-08-09 21:22:47
言語 C++14
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 1,000 ms
+ 797µs
コード長 299 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,128 ms
コンパイル使用メモリ 182,124 KB
実行使用メモリ 7,856 KB
最終ジャッジ日時 2026-11-27 21:38:07
合計ジャッジ時間 2,218 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge6_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>

int ri() {
	int n;
	scanf("%d", &n);
	return n;
}

int64_t rll() {
	long long n;
	scanf("%lld", &n);
	return n;
}

int main() {
	int64_t x = rll(), y = rll(), z = rll();
	int64_t cnt = z;
	if (x <= z) cnt--;
	if (y <= z) cnt--;
	std::cout << cnt << std::endl;
	return 0;
}
0