結果

問題 No.857 素振り
ユーザー dgd1724dgd1724
提出日時 2019-09-25 06:43:05
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 312 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 58,780 KB
実行使用メモリ 8,696 KB
最終ジャッジ日時 2023-10-20 00:23:18
合計ジャッジ時間 3,389 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
8,696 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <fstream>
#include <iostream>
#include <utility>


int main() {

	//std::ifstream inf("Text.txt");	std::cin.rdbuf(inf.rdbuf());
	long long int X, Y, Z;
	std::cin >> X >> Y >> Z;

	int ans = 0;
	for (int i = 1; i <= Z; i++) {
		if (i != X && i != Y) {
			ans++;
		}
	}
	
	std::cout << ans << std::endl;
}
0