結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-11 00:16:45 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 345 bytes |
| コンパイル時間 | 13,149 ms |
| コンパイル使用メモリ | 400,496 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-24 06:22:38 |
| 合計ジャッジ時間 | 13,333 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 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();
}
}
print!("{}", result);
}