結果
問題 | No.400 鏡 |
ユーザー |
![]() |
提出日時 | 2016-07-22 22:49:56 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 296 bytes |
コンパイル時間 | 11,614 ms |
コンパイル使用メモリ | 233,092 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 09:09:29 |
合計ジャッジ時間 | 11,958 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
package main import ( "bufio" "fmt" "os" "strings" ) func main() { mirror := map[string]string{ ">": "<", "<": ">", } sc := bufio.NewScanner(os.Stdin) sc.Scan() st := strings.Split(sc.Text(), "") for i := len(st) - 1; i >= 0; i-- { fmt.Print(mirror[st[i]]) } fmt.Println() }