結果

問題 No.1799 Summer Day
ユーザー Hima
提出日時 2022-06-15 19:11:20
言語 Go
(1.23.4)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 582 bytes
コンパイル時間 9,641 ms
コンパイル使用メモリ 239,032 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-04 15:23:39
合計ジャッジ時間 10,514 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

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

var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)

func main() {
	buf := make([]byte, 1024*1024)
	sc.Buffer(buf, bufio.MaxScanTokenSize)
	sc.Split(bufio.ScanWords)

	n, s := nextInt(), nextInt()
	sd := s - 29*(n-1)
	if 25 <= s && sd < 30 {
		PrintString("Yes")
	} else {
		PrintString("No")
	}
}

func nextInt() int {
	sc.Scan()
	i, _ := strconv.Atoi(sc.Text())
	return i
}

func PrintString(x string) {
	defer out.Flush()
	fmt.Fprintln(out, x)
}

func Ceil(x, y int) int {
	return (x + y - 1) / y
}
0