結果

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

ソースコード

diff #

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