結果

問題 No.80 四角形を描こう
ユーザー lllllll88938494lllllll88938494
提出日時 2022-03-14 04:17:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 239 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 11,856 KB
実行使用メモリ 10,180 KB
最終ジャッジ日時 2023-10-19 17:14:17
合計ジャッジ時間 1,325 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,176 KB
testcase_01 AC 30 ms
10,176 KB
testcase_02 AC 32 ms
10,176 KB
testcase_03 AC 32 ms
10,176 KB
testcase_04 AC 30 ms
10,176 KB
testcase_05 WA -
testcase_06 AC 29 ms
10,088 KB
testcase_07 AC 32 ms
10,176 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=0

for i in range(n-n%2,max(n-15,0),-2):
    a=int(pow(i,0.5))
    for j in range(int(pow(a,0.5)),a+1):
        if i%j==0:
            if n >= (i//j)*2 + j*2:
                ans=max((i//j)*j,ans)
           
print(ans)
0