結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-11 00:15:00 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 347 bytes |
| コンパイル時間 | 15,414 ms |
| コンパイル使用メモリ | 399,592 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-24 06:22:20 |
| 合計ジャッジ時間 | 13,828 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 20 |
ソースコード
fn main() {
let stdin = std::io::stdin();
let mut buf = String::new();
stdin.read_line(&mut buf).ok();
let mut result = String::new();
for i in buf.as_str().chars() {
if i >= 'a' {
result += &i.to_string().to_ascii_uppercase();
} else {
result += &i.to_string().to_lowercase();
}
}
println!("{}", result);
}