結果

問題 No.80 四角形を描こう
ユーザー 🍡yurahuna🍡yurahuna
提出日時 2016-05-04 13:53:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 5,000 ms
コード長 138 bytes
コンパイル時間 395 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 58,624 KB
最終ジャッジ日時 2024-04-16 22:54:49
合計ジャッジ時間 1,353 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,096 KB
testcase_01 AC 40 ms
51,712 KB
testcase_02 AC 40 ms
51,584 KB
testcase_03 AC 41 ms
51,456 KB
testcase_04 AC 40 ms
51,712 KB
testcase_05 AC 42 ms
52,096 KB
testcase_06 AC 41 ms
51,712 KB
testcase_07 AC 40 ms
51,712 KB
testcase_08 AC 41 ms
51,584 KB
testcase_09 AC 45 ms
57,600 KB
testcase_10 AC 45 ms
57,472 KB
testcase_11 AC 47 ms
58,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = int(input())
ans = 0
for h in range(1, a):
    w = (a - 2 * h) // 2
    if w <= 0:
        break
    ans = max(ans, h * w)
print(ans)
0