結果

問題 No.111 あばばばば
ユーザー ああいいああいい
提出日時 2022-05-17 17:32:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 99 bytes
コンパイル時間 1,596 ms
コンパイル使用メモリ 86,548 KB
実行使用メモリ 71,452 KB
最終ジャッジ日時 2023-10-13 16:24:27
合計ジャッジ時間 3,125 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,444 KB
testcase_01 AC 69 ms
71,352 KB
testcase_02 AC 70 ms
71,252 KB
testcase_03 AC 69 ms
71,088 KB
testcase_04 AC 70 ms
71,324 KB
testcase_05 AC 68 ms
71,224 KB
testcase_06 AC 69 ms
71,368 KB
testcase_07 AC 69 ms
71,452 KB
testcase_08 AC 71 ms
71,080 KB
testcase_09 AC 69 ms
71,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L = int(input())

u = (L + 1) // 2
v = L // 2

ans = u * (u - 1) // 2 + v * (v - 1) // 2
print(ans)
0