結果

問題 No.480 合計
ユーザー satorysatory
提出日時 2017-04-16 09:53:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 733 bytes
コンパイル時間 1,386 ms
コンパイル使用メモリ 86,500 KB
実行使用メモリ 71,268 KB
最終ジャッジ日時 2023-08-21 01:42:25
合計ジャッジ時間 2,940 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,064 KB
testcase_01 AC 69 ms
71,236 KB
testcase_02 AC 70 ms
71,056 KB
testcase_03 AC 74 ms
70,852 KB
testcase_04 AC 71 ms
71,152 KB
testcase_05 AC 71 ms
71,144 KB
testcase_06 AC 69 ms
71,060 KB
testcase_07 AC 70 ms
70,900 KB
testcase_08 AC 70 ms
71,000 KB
testcase_09 AC 70 ms
71,000 KB
testcase_10 AC 71 ms
71,124 KB
testcase_11 AC 72 ms
71,268 KB
testcase_12 AC 71 ms
71,192 KB
testcase_13 AC 71 ms
71,056 KB
testcase_14 AC 71 ms
71,116 KB
testcase_15 AC 72 ms
71,268 KB
testcase_16 AC 70 ms
71,064 KB
testcase_17 AC 68 ms
71,004 KB
testcase_18 AC 70 ms
71,060 KB
testcase_19 AC 70 ms
71,036 KB
testcase_20 AC 70 ms
71,172 KB
testcase_21 AC 70 ms
71,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8

# 標準入力から一行分を読み出し、文字列として格納する。
first = input()

# 読み込んだ文字列をスペースで分割する
#split_first = first.split()

# それぞれをint型に変換する
N = int(first)
#A = int(split_first[0])
#B = int(split_first[1])

# 慣れてくると この一行でよい
# A, B = map(int, input().split())

# 参考: リストを読む際はlist()で覆ってやらないといけない
# L = list(map(int, input().split()))

#2行目を読み込む
#S = input()

# 標準出力に書き出す。
# カンマで区切るとスペースで分割してくれるので楽です。
#print(A + B, S)

sum_ = 0
for i in range(N):
    sum_ += i+1

print (sum_)
0