結果
| 問題 | No.841 8/32 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-06-28 21:35:30 | 
| 言語 | Go (1.23.4) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 1,261 bytes | 
| コンパイル時間 | 16,265 ms | 
| コンパイル使用メモリ | 238,720 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-02 04:27:14 | 
| 合計ジャッジ時間 | 17,089 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 | 
ソースコード
package main
import (
	"bufio"
	"fmt"
	"os"
	"regexp"
	"strconv"
)
var reg = regexp.MustCompile("^(dream(er)?|eraser?)+$")
func main() {
	nextReader = newScanner()
	a := nextString()
	b := nextString()
	if isHoliday(a) && isHoliday(b) {
		fmt.Println("8/33")
		return
	}
	if isHoliday(a) && !isHoliday(b) {
		fmt.Println("8/32")
		return
	}
	fmt.Println("8/31")
}
func isHoliday(s string) bool {
	return s == "Sun" || s == "Sat"
}
var nextReader func() string
func newScanner() func() string {
	r := bufio.NewScanner(os.Stdin)
	r.Buffer(make([]byte, 1024), int(1e+11))
	r.Split(bufio.ScanWords)
	return func() string {
		r.Scan()
		return r.Text()
	}
}
func nextString() string {
	return nextReader()
}
func nextInt64() int64 {
	v, _ := strconv.ParseInt(nextReader(), 10, 64)
	return v
}
func nextInt() int {
	v, _ := strconv.Atoi(nextReader())
	return v
}
func nextInts(n int) []int {
	r := make([]int, n)
	for i := 0; i < n; i++ {
		r[i] = nextInt()
	}
	return r
}
func nextInt64s(n int) []int64 {
	r := make([]int64, n)
	for i := 0; i < n; i++ {
		r[i] = nextInt64()
	}
	return r
}
func nextFloat64() float64 {
	f, _ := strconv.ParseFloat(nextReader(), 64)
	return f
}
func maxInt(a, b int) int {
	if a > b {
		return a
	} else {
		return b
	}
}
            
            
            
        