結果
| 問題 |
No.2953 Maximum Right Triangle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-08 22:05:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 323 bytes |
| コンパイル時間 | 398 ms |
| コンパイル使用メモリ | 82,436 KB |
| 実行使用メモリ | 54,776 KB |
| 最終ジャッジ日時 | 2024-11-08 22:05:31 |
| 合計ジャッジ時間 | 961 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 WA * 4 |
ソースコード
T=int(input()) for _ in range(T): D,x,y=map(int,input().split()) if x==0: print(D*y) continue if y==0: print(D*x) continue if x>=y: if x+y>D: print(0) continue k=min((D-y)//x,x//y)//1 print(k*(x**2+y**2)) if y>x: if x+y>D: print(0) continue k=min((D-x)//y,y//x)//1 print(k*(x**2+y**2))