結果

問題 No.80 四角形を描こう
ユーザー mai
提出日時 2017-05-21 14:13:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 159 ms / 5,000 ms
コード長 379 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 81,960 KB
実行使用メモリ 61,416 KB
最終ジャッジ日時 2024-09-19 08:06:28
合計ジャッジ時間 1,396 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

# ##################### #
# #                   # #
# #   python3勉強中   # # (゚д゚)
# #                   # #
# ##################### #
import sys

l = int(input())

if l < 4:
    print(0)
else:
    rslt = 0
    for x in range(int(l/2),0,-1):
        for y in range(int(l/2),0,-1):
            if x*2+y*2 > l : continue
            rslt=max(rslt,x*y)
    print(rslt)
    
0