結果
問題 |
No.163 cAPSlOCK
|
ユーザー |
![]() |
提出日時 | 2018-03-03 17:46:27 |
言語 | Rust (1.83.0 + proconio) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 444 bytes |
コンパイル時間 | 19,079 ms |
コンパイル使用メモリ | 380,116 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 04:44:38 |
合計ジャッジ時間 | 14,441 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 20 |
ソースコード
use std::io::stdin; pub fn main() { let stdin = { let mut buf = String::new(); let _ = stdin().read_line(&mut buf); buf }; let answer = stdin .chars() .map(|x| { if x.is_uppercase() { x.to_lowercase().to_string() } else { x.to_uppercase().to_string() } }) .collect::<String>(); println!("{}", answer); }