結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
tsuchinaga
|
| 提出日時 | 2019-02-27 21:57:41 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 364 bytes |
| コンパイル時間 | 9,356 ms |
| コンパイル使用メモリ | 233,580 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-23 05:20:19 |
| 合計ジャッジ時間 | 11,390 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / 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