結果
問題 | No.2034 Anti Lexicography |
ユーザー |
![]() |
提出日時 | 2023-02-12 13:43:56 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 390 bytes |
コンパイル時間 | 12,774 ms |
コンパイル使用メモリ | 382,932 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-16 05:17:15 |
合計ジャッジ時間 | 14,112 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
use std::io;fn main() {let mut n = String::new();io::stdin().read_line(&mut n).ok();let _n: usize = n.trim().parse().unwrap();let mut s = String::new();io::stdin().read_line(&mut s).ok();let s = s.trim();let ans = s.chars().map(|x| ((219 - x as u8) as char)).collect::<Vec<char>>();let ans: String = ans.iter().collect();println!("{}", ans);}