Submission #3422645
Source Code Expand
package main import ( "bufio" "fmt" "io" "os" "strconv" ) var ( readString func() string stdout *bufio.Writer ) func init() { readString = newReadString(os.Stdin) stdout = bufio.NewWriter(os.Stdout) } func newReadString(ior io.Reader) func() string { r := bufio.NewScanner(ior) r.Buffer(make([]byte, 1024), int(1e+11)) r.Split(bufio.ScanWords) return func() string { if !r.Scan() { panic("Scan failed") } return r.Text() } } func readInt() int { return int(readInt64()) } func readInt64() int64 { i, err := strconv.ParseInt(readString(), 0, 64) if err != nil { panic(err.Error()) } return i } func readIntSlice(n int) []int { b := make([]int, n) for i := 0; i < n; i++ { b[i] = readInt() } return b } func readLengthAndSlice() (int, []int) { n := readInt() return n, readIntSlice(n) } func printf(f string, args ...interface{}) (int, error) { return fmt.Fprintf(stdout, f, args...) } func println(args ...interface{}) (int, error) { return fmt.Fprintln(stdout, args...) } func eprintln(args ...interface{}) (int, error) { return fmt.Fprintln(os.Stderr, args...) } // readString() string // readInt() int // readIntSlice(n int) []int // readLengthAndSlice() []int // ----------------------------------------------------------------------------- func main() { defer stdout.Flush() n := readInt() println(n * 2) } // -----------------------------------------------------------------------------
Submission Info
Submission Time | |
---|---|
Task | A - 流行 |
User | ktateish |
Language | Go (1.6) |
Score | 100 |
Code Size | 1540 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 640 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_00.txt, max_1000000.txt, min_0.txt, rand_133007.txt, rand_171937.txt, rand_172717.txt, rand_232508.txt, rand_242450.txt, rand_246841.txt, rand_269046.txt, rand_320433.txt, rand_435534.txt, rand_50616.txt, rand_537196.txt, rand_565439.txt, rand_601980.txt, rand_622146.txt, rand_624081.txt, rand_678601.txt, rand_696476.txt, rand_762274.txt, rand_798714.txt, rand_821336.txt, rand_85323.txt, rand_859632.txt, rand_921203.txt, rand_934508.txt, rand_993594.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 1 ms | 640 KB |
max_1000000.txt | AC | 1 ms | 640 KB |
min_0.txt | AC | 1 ms | 640 KB |
rand_133007.txt | AC | 1 ms | 640 KB |
rand_171937.txt | AC | 1 ms | 640 KB |
rand_172717.txt | AC | 1 ms | 640 KB |
rand_232508.txt | AC | 1 ms | 640 KB |
rand_242450.txt | AC | 1 ms | 640 KB |
rand_246841.txt | AC | 1 ms | 640 KB |
rand_269046.txt | AC | 1 ms | 640 KB |
rand_320433.txt | AC | 1 ms | 640 KB |
rand_435534.txt | AC | 1 ms | 640 KB |
rand_50616.txt | AC | 1 ms | 640 KB |
rand_537196.txt | AC | 1 ms | 640 KB |
rand_565439.txt | AC | 1 ms | 640 KB |
rand_601980.txt | AC | 1 ms | 640 KB |
rand_622146.txt | AC | 1 ms | 640 KB |
rand_624081.txt | AC | 1 ms | 640 KB |
rand_678601.txt | AC | 1 ms | 640 KB |
rand_696476.txt | AC | 1 ms | 640 KB |
rand_762274.txt | AC | 1 ms | 640 KB |
rand_798714.txt | AC | 1 ms | 640 KB |
rand_821336.txt | AC | 1 ms | 640 KB |
rand_85323.txt | AC | 1 ms | 640 KB |
rand_859632.txt | AC | 1 ms | 640 KB |
rand_921203.txt | AC | 1 ms | 640 KB |
rand_934508.txt | AC | 1 ms | 640 KB |
rand_993594.txt | AC | 1 ms | 640 KB |