結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-01 12:59:51 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 313 bytes |
| コンパイル時間 | 24,758 ms |
| コンパイル使用メモリ | 393,620 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-11-01 13:00:18 |
| 合計ジャッジ時間 | 25,563 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
use proconio::input;
fn main() {
input! {
s: String,
}
let ans: String = s.chars()
.map(|c| {
if c.is_uppercase() {
c.to_ascii_lowercase()
} else {
c.to_ascii_uppercase()
}
})
.collect();
println!("{ans}");
}