結果

問題 No.1422 Social Distance in Train
ユーザー keisuke6
提出日時 2022-08-07 23:59:19
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 2,503 ms
コンパイル使用メモリ 243,264 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-17 15:43:19
合計ジャッジ時間 3,349 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  int N;
  cin>>N;
  if(N%2 == 0) cout<<N/2+1<<endl;
  else cout<<1<<endl;
}
0