結果

問題 No.1687 What the Heck?
ユーザー ayaoni
提出日時 2021-09-24 21:23:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 139 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 81,664 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-07-05 09:57:28
合計ジャッジ時間 2,019 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 1 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)

N = int(input())
if N == 1:
    print(0)
else:
    print(N*(N+1)//2-2)
0