結果

問題 No.821 Making Integers
ユーザー titiytitiy
提出日時 2019-05-16 14:34:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 56 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 11,816 KB
実行使用メモリ 10,156 KB
最終ジャッジ日時 2023-10-17 06:53:14
合計ジャッジ時間 1,591 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,128 KB
testcase_01 WA -
testcase_02 AC 30 ms
10,128 KB
testcase_03 WA -
testcase_04 AC 28 ms
10,128 KB
testcase_05 WA -
testcase_06 AC 28 ms
10,128 KB
testcase_07 AC 28 ms
10,128 KB
testcase_08 AC 29 ms
10,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
print(int((2*n-k+1)*k/2+1))
0