結果

問題 No.687 E869120 and Constructing Array 1
ユーザー makition
提出日時 2018-06-28 17:36:12
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 176 bytes
コンパイル時間 661 ms
コンパイル使用メモリ 54,676 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 23:30:15
合計ジャッジ時間 1,002 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;
int main()
{
	int N;
	cin >> N;
	if
		(N % 2 == 0) cout << N/2 << " " << N/2 << endl;
	else
		cout << N/2 << " " << N - N/2 << endl;
}
0