結果

問題 No.231 めぐるはめぐる (1)
ユーザー tsuchinagatsuchinaga
提出日時 2019-02-27 21:57:41
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 364 bytes
コンパイル時間 11,331 ms
コンパイル使用メモリ 212,016 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-05 09:26:47
合計ジャッジ時間 12,928 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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")
	}
}
0