結果

問題 No.821 Making Integers
ユーザー roarisroaris
提出日時 2020-01-12 20:42:49
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 56 bytes
コンパイル時間 728 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 71,360 KB
最終ジャッジ日時 2023-08-20 06:49:07
合計ジャッジ時間 2,117 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
70,964 KB
testcase_01 AC 77 ms
71,360 KB
testcase_02 AC 77 ms
71,064 KB
testcase_03 AC 76 ms
71,200 KB
testcase_04 AC 78 ms
71,208 KB
testcase_05 AC 76 ms
71,204 KB
testcase_06 AC 76 ms
70,984 KB
testcase_07 AC 77 ms
71,316 KB
testcase_08 AC 75 ms
71,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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