結果

問題 No.1422 Social Distance in Train
ユーザー GER_chenGER_chen
提出日時 2021-03-12 21:21:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 834 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-10-14 11:18:09
合計ジャッジ時間 1,299 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#import sys;input = lambda: sys.stdin.readline().rstrip()
#CF706-E-2500
#from functools import lru_cache
#@lru_cache(maxsize = None)
#import numpy as np
#import heapq
#from collections import deque
#from collections import Counter as cnt
#from collections import defaultdict as ddc
#from math import factorial as fct
#from math import gcd
#from bisect import bisect_left as bsl
#from bisect import bisect_right as bsr
#from itertools import accumulate as acc
#from itertools import combinations as cmb
#from itertools import permutations as pmt
#from itertools import product as prd
#from functools import reduce as red
#import sys
#sys.setrecursionlimit(10**9)  #再帰を多く使う(デフォルトは1000)
#from sys import stdout
#flush = stdout.flush()

n = int(input())
if n%2:
    ans = 1
else:
    ans = n//2+1
    
print(ans)
0