結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
tsuchinaga
|
| 提出日時 | 2019-02-27 21:57:41 |
| 言語 | Go (1.25.7) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 364 bytes |
| 記録 | |
| コンパイル時間 | 9,869 ms |
| コンパイル使用メモリ | 294,748 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-07 20:29:49 |
| 合計ジャッジ時間 | 11,236 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 WA * 9 |
ソースコード
package main
import "fmt"
func main() {
var n, g, d int
_, _ = fmt.Scan(&n)
max := 0
maxI := 0
for i := 0; i < n; i++ {
_, _ = fmt.Scan(&g, d)
e := g - d*30000
if max < e {
max = e
maxI = i + 1
}
}
if max*6 >= 30000*100 {
fmt.Printf("YES\n%d\n%d\n%d\n%d\n%d\n%d\n", maxI, maxI, maxI, maxI, maxI, maxI)
} else {
fmt.Println("NO")
}
}
tsuchinaga