結果

問題 No.1822 Keima of Shogi
ユーザー MasKoaTSMasKoaTS
提出日時 2022-01-28 21:23:58
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 229 ms / 2,000 ms
コード長 682 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 83,216 KB
最終ジャッジ日時 2023-08-28 19:03:01
合計ジャッジ時間 3,481 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 222 ms
83,120 KB
testcase_01 AC 224 ms
83,048 KB
testcase_02 AC 224 ms
82,988 KB
testcase_03 AC 223 ms
83,160 KB
testcase_04 AC 223 ms
82,912 KB
testcase_05 AC 229 ms
83,164 KB
testcase_06 AC 229 ms
83,096 KB
testcase_07 AC 226 ms
83,216 KB
testcase_08 AC 227 ms
83,168 KB
testcase_09 AC 226 ms
83,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from copy import deepcopy as dcopy
import math
import sys
sys.setrecursionlimit(10**6)
def input():
    return sys.stdin.readline().rstrip()
def getN():
	return int(sys.stdin.readline())
def getNs():
	return map(int,sys.stdin.readline().split())
def getList():
	return list(map(int,sys.stdin.readline().split()))
def strinps(n):
	return [sys.stdin.readline().rstrip() for _ in range(n)]
pi = 3.141592653589793
mod = 10**9+7
MOD = 998244353
INF = math.inf
dx = [1,0,-1,0];	dy = [0,1,0,-1]


"""
Main Code
"""

n = (getN() + 1) // 2
print(n * (n + 1) // 2)
0