-
-
Save hirokazumiyaji/8a012025aa12dc7339b3 to your computer and use it in GitHub Desktop.
東京工業大学プログラミングコンテスト2015
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) | |
func main() { | |
scanner := bufio.NewScanner(os.Stdin) | |
scanner.Scan() | |
input := scanner.Text() | |
switch input[2] { | |
case 'B': | |
fmt.Println("Bachelor", input[0:2]) | |
case 'M': | |
fmt.Println("Master", input[0:2]) | |
case 'D': | |
fmt.Println("Doctor", input[0:2]) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment