結果

問題 No.3060 サンプルケース至上主義
ユーザー 👑 naipianaipia
提出日時 2020-04-01 22:26:45
言語 Go
(1.21.3)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,408 bytes
コンパイル時間 11,950 ms
コンパイル使用メモリ 208,708 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-09 19:02:17
合計ジャッジ時間 12,556 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

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

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

func scanString() string   { sc.Scan(); return sc.Text() }
func scanRunes() []rune    { return []rune(scanString()) }
func scanInt() int         { a, _ := strconv.Atoi(scanString()); return a }
func scanInt64() int64     { a, _ := strconv.ParseInt(scanString(), 10, 64); return a }
func scanFloat64() float64 { a, _ := strconv.ParseFloat(scanString(), 64); return a }

func scanInts(n int) []int {
	res := make([]int, n)
	for i := 0; i < n; i++ {
		res[i] = scanInt()
	} 
	return res
}

func debug(a ...interface{}) { fmt.Fprintln(os.Stderr, a...) }

func abs(a int) int {
	if a < 0 {
		return -a
	}
	return a
}
func min(a, b int) int {
	if a < b {
		return a
	}
	return b
}
func max(a, b int) int {
	if a > b {
		return a
	}
	return b
}

//•*¨*•.¸¸♪main•*¨*•.¸¸♪( -ω-)ノ ( ・ω・)
func main() {
	defer wr.Flush()

	sc.Buffer(make([]byte, 10000), 1001001)

	s := scanString()
	switch s {
	case "0":
		fmt.Fprintln(wr, "Nothing")
	case "3.14159265":
		fmt.Fprintln(wr, "pi")
	case "1112345678999+X":
		fmt.Fprintln(wr, "九蓮宝燈")
		fmt.Fprintln(wr, "Thirteen Orphans")
	case "All your base are belong to us.":
		fmt.Fprintf(wr, "3\n4\n4\n3\n6\n2\n2\n")
	case "くぁwせdrftgyふじこlp":
		fmt.Fprintln(wr, "さmpぇ")
	}
}
0