結果

問題 No.1422 Social Distance in Train
ユーザー 8nd5t8nd5t
提出日時 2021-03-12 21:23:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 600 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 62,796 KB
最終ジャッジ日時 2024-04-22 12:01:04
合計ジャッジ時間 1,654 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
62,080 KB
testcase_01 AC 50 ms
60,800 KB
testcase_02 AC 50 ms
61,528 KB
testcase_03 AC 50 ms
62,796 KB
testcase_04 AC 51 ms
62,180 KB
testcase_05 AC 50 ms
61,228 KB
testcase_06 AC 51 ms
61,820 KB
testcase_07 AC 51 ms
61,208 KB
testcase_08 AC 50 ms
62,212 KB
testcase_09 AC 50 ms
61,180 KB
testcase_10 AC 51 ms
62,328 KB
testcase_11 AC 54 ms
61,468 KB
testcase_12 AC 50 ms
61,036 KB
testcase_13 AC 50 ms
61,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,math,itertools
from collections import Counter,deque,defaultdict
from bisect import bisect_left,bisect_right 
from heapq import heappop,heappush,heapify, nlargest
from copy import deepcopy
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_1(): return list(map(lambda x:int(x)-1, sys.stdin.readline().split()))
def inps(): return sys.stdin.readline()
def inpsl(x): tmp = sys.stdin.readline(); return list(tmp[:x])
def err(x): print(x); exit()

n = inp()
if n%2: print(1)
else: print(n//2+1)
0