結果
| 問題 |
No.687 E869120 and Constructing Array 1
|
| コンテスト | |
| ユーザー |
mixjuice
|
| 提出日時 | 2018-06-26 08:38:48 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 1,000 ms |
| コード長 | 329 bytes |
| コンパイル時間 | 2,140 ms |
| コンパイル使用メモリ | 191,720 KB |
| 最終ジャッジ日時 | 2025-01-06 11:36:03 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
if(n % 2 == 0){
cout << n / 2 << " " << n / 2 << endl;
}else{
cout << n / 2 + 1 << " " << n / 2 << endl;
}
return 0;
}
mixjuice