結果
| 問題 |
No.80 四角形を描こう
|
| コンテスト | |
| ユーザー |
はまやんはまやん
|
| 提出日時 | 2018-06-09 13:51:27 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 338 bytes |
| コンパイル時間 | 11,006 ms |
| コンパイル使用メモリ | 229,388 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 12:33:50 |
| 合計ジャッジ時間 | 11,547 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 8 |
ソースコード
package main
import (
"fmt"
)
func main() {
var (
d int
ans int
w int
sm int
)
fmt.Scan(&d)
ans = 0
for h := 1; h < 10101; h++ {
w = (d - h * 2) / 2
sm = h * w
if ans < sm {
ans = sm
}
}
println(ans)
}
はまやんはまやん