結果
問題 |
No.1799 Summer Day
|
ユーザー |
|
提出日時 | 2022-06-15 18:43:39 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 605 bytes |
コンパイル時間 | 10,145 ms |
コンパイル使用メモリ | 232,664 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-04 14:21:09 |
合計ジャッジ時間 | 10,338 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 7 |
ソースコード
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() average := s / n sd := s - average*(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 }