提出 #71471702


ソースコード 拡げる

import sys
N = int(sys.stdin.readline())

print(N * (1+ N ) //2)

提出情報

提出日時
問題 A - Triangular Number
ユーザ tariaki
言語 Python (CPython 3.13.7)
得点 100
コード長 71 Byte
結果 AC
実行時間 10 ms
メモリ 9264 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 11
セット名 テストケース
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt
ケース名 結果 実行時間 メモリ
example_00.txt AC 9 ms 9144 KiB
example_01.txt AC 9 ms 9264 KiB
example_02.txt AC 9 ms 9044 KiB
hand_00.txt AC 9 ms 9040 KiB
hand_01.txt AC 9 ms 9136 KiB
hand_02.txt AC 9 ms 9120 KiB
random_00.txt AC 10 ms 9148 KiB
random_01.txt AC 9 ms 9160 KiB
random_02.txt AC 10 ms 9120 KiB
random_03.txt AC 9 ms 9068 KiB
random_04.txt AC 9 ms 9144 KiB