結果

問題 No.80 四角形を描こう
ユーザー brthyyjpbrthyyjp
提出日時 2021-05-12 22:17:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 138 bytes
コンパイル時間 1,148 ms
コンパイル使用メモリ 81,504 KB
実行使用メモリ 59,388 KB
最終ジャッジ日時 2023-10-24 17:18:17
合計ジャッジ時間 1,413 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,332 KB
testcase_01 AC 37 ms
53,332 KB
testcase_02 AC 36 ms
53,332 KB
testcase_03 AC 37 ms
53,332 KB
testcase_04 AC 37 ms
53,332 KB
testcase_05 AC 37 ms
53,332 KB
testcase_06 AC 37 ms
53,332 KB
testcase_07 AC 37 ms
53,332 KB
testcase_08 AC 37 ms
53,332 KB
testcase_09 AC 43 ms
59,388 KB
testcase_10 AC 43 ms
59,388 KB
testcase_11 AC 44 ms
59,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

d = int(input())
ans = 0
for x in range(0, d+1):
    if d-2*x < 0:
        continue
    y = (d-2*x)//2
    ans = max(ans, x*y)
print(ans)
0