結果

問題 No.163 cAPSlOCK
ユーザー halship
提出日時 2017-06-19 13:46:36
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 305 bytes
コンパイル時間 12,136 ms
コンパイル使用メモリ 402,288 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-02 07:42:47
合計ジャッジ時間 13,193 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io;

fn main() {
    let mut s = String::new();
    io::stdin().read_line(&mut s).unwrap();

    for c in s.trim().chars() {
        if c.is_lowercase() {
            print!("{}", c.to_uppercase());
        } else {
            print!("{}", c.to_lowercase());
        }
    }
    println!("");
}
0