結果

問題 No.1893 Cycle
ユーザー soragsorag
提出日時 2022-07-19 15:30:50
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 487 ms
コンパイル使用メモリ 62,720 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-01 18:29:28
合計ジャッジ時間 1,343 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;

int main() {
	int x, y, z,k;
	cin >> x >> y;
	z = max(x, y);
	k = min(x, y);
	if (z < 8) cout << z + 4 << endl;
	else if(z>=8 and k>z-8) cout << z-8 << endl;
	else cout << z+4 << endl;

	return 0;
}
0