結果
問題 | No.163 cAPSlOCK |
ユーザー |
![]() |
提出日時 | 2019-02-19 08:29:38 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 275 bytes |
コンパイル時間 | 10,800 ms |
コンパイル使用メモリ | 225,148 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-10 21:14:03 |
合計ジャッジ時間 | 11,656 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
package main import ( "fmt" "strings" ) func main() { var s, o string _, _ = fmt.Scan(&s) u := strings.ToUpper(s) for i, c := range s { if string(c) != string(u[i]) { o += string(u[i]) } else { o += strings.ToLower(string(u[i])) } } fmt.Println(o) }