結果
| 問題 |
No.3035 文字列のみの反転
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-28 21:36:47 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 266 bytes |
| コンパイル時間 | 12,898 ms |
| コンパイル使用メモリ | 402,808 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2025-02-28 21:37:17 |
| 合計ジャッジ時間 | 13,251 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
use proconio::{input, marker::Chars};
fn main() {
input! {
s: Chars,
}
let a: String = s.iter().filter(|&&x| x.is_alphabetic()).rev().collect();
let b: String = s.iter().filter(|&&x| x.is_numeric()).collect();
println!("{}{}", a, b);
}