結果

問題 No.218 経験値1.5倍
ユーザー 第一のいっちー第一のいっちー
提出日時 2020-07-08 12:07:12
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 481 bytes
コンパイル時間 11,833 ms
コンパイル使用メモリ 232,504 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-14 11:48:16
合計ジャッジ時間 12,514 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 1 ms
6,940 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 2 ms
6,940 KB
testcase_11 WA -
testcase_12 AC 1 ms
6,944 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 1 ms
6,940 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 1 ms
6,944 KB
testcase_19 WA -
testcase_20 AC 2 ms
6,944 KB
testcase_21 AC 1 ms
6,944 KB
testcase_22 AC 1 ms
6,944 KB
testcase_23 AC 1 ms
6,940 KB
testcase_24 AC 1 ms
6,940 KB
testcase_25 AC 1 ms
6,944 KB
testcase_26 WA -
testcase_27 AC 1 ms
6,940 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 1 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import(
	"fmt"
	"os"
	"bufio"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func main() {
	ep, epForNormal, epForSpecial := nextLine(), nextLine(), nextLine()
	normalTimes := float64(ep / epForNormal)
	specialTimes := float64(ep / epForSpecial)
	a := specialTimes / normalTimes
	b := 0.6666666666666666

	if a > b {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}
}

func nextLine() int64 {
    sc.Scan()
	i, _ := strconv.Atoi(sc.Text())
	return int64(i)
}
0