Submission #1870846
Source Code Expand
package main import ( "fmt" "bufio" "os" "strconv" ) // 標準入力(os.Stdin) var sc = bufio.NewScanner(os.Stdin) func main(){ // スペース区切りで文字を取り出す(bufio.ScanWords) sc.Split(bufio.ScanWords) n := nextInt() // 1つ目の数値 m := nextInt() // 2つ目の数値 fmt.Println(strconv.Itoa(m) + " " + strconv.Itoa(n)) } func nextInt() int { sc.Scan() // 1行ずつ読み込む i, _ := strconv.Atoi(sc.Text()) // 読み込んだ文字を数値型へ変換 return i }
Submission Info
Submission Time | |
---|---|
Task | A - スワップ |
User | yy18 |
Language | Go (1.6) |
Score | 100 |
Code Size | 574 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 | sample_01.txt, sample_02.txt, test_13_69.txt, test_16_44.txt, test_40_40.txt, test_49_31.txt, test_51_74.txt, test_83_60.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 1 ms | 640 KB |
sample_02.txt | AC | 1 ms | 640 KB |
test_13_69.txt | AC | 1 ms | 640 KB |
test_16_44.txt | AC | 1 ms | 640 KB |
test_40_40.txt | AC | 1 ms | 640 KB |
test_49_31.txt | AC | 1 ms | 640 KB |
test_51_74.txt | AC | 1 ms | 640 KB |
test_83_60.txt | AC | 1 ms | 640 KB |