結果

問題 No.218 経験値1.5倍
ユーザー sshomaaasshomaaa
提出日時 2020-07-08 12:03:04
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 666 bytes
コンパイル時間 14,646 ms
コンパイル使用メモリ 228,248 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-14 11:42:33
合計ジャッジ時間 12,633 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

package main

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

// utils ///////////////////////////////
func readStdin() string {
	in := bufio.NewReader(os.Stdin)
	s, _ := in.ReadString('\n')
	return strings.TrimSuffix(s, "\n")
}

func readInt() int {
	s := readStdin()
	i, _ := strconv.Atoi(s)
	return i
}

func readFloat64() float64 {
	i := readInt()
	return float64(i)
}
////////////////////////////////////////

func main() {
	a := readFloat64()
	b := readFloat64()
	c := readFloat64()

	normal := math.Ceil(a / b)
	campaign := math.Ceil(a / c)
	n2 := (normal / 3) * 2

	if n2 >= campaign {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}
}
0