結果

問題 No.111 あばばばば
ユーザー zyxwzyxw
提出日時 2020-10-18 11:27:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 138 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 7,940 KB
最終ジャッジ日時 2023-09-28 08:52:13
合計ジャッジ時間 811 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,888 KB
testcase_01 AC 14 ms
7,740 KB
testcase_02 AC 14 ms
7,940 KB
testcase_03 WA -
testcase_04 AC 14 ms
7,896 KB
testcase_05 AC 13 ms
7,728 KB
testcase_06 AC 13 ms
7,792 KB
testcase_07 AC 13 ms
7,724 KB
testcase_08 AC 13 ms
7,912 KB
testcase_09 AC 13 ms
7,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L=int(input())
num_a=int(L/2)+1
num_b=int(L/2)
if L==3:
    ans=1
else:
    ans=int(num_a*(num_a-1)/2)+int((num_b)*(num_b-1)/2)
print(ans)
0