結果

問題 No.1422 Social Distance in Train
ユーザー butsurizuki
提出日時 2021-03-12 21:22:04
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 27,392 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-14 11:19:26
合計ジャッジ時間 863 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(){
    int n;
    scanf("%d",&n);
    if(n%2){puts("1");}
    else{printf("%d\n",1+(n/2));}
    return 0;
}
0