結果
| 問題 | No.3035 文字列のみの反転 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-01 23:11:04 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| コード長 | 374 bytes |
| 記録 | |
| コンパイル時間 | 529 ms |
| コンパイル使用メモリ | 190,712 KB |
| 実行使用メモリ | 9,276 KB |
| 最終ジャッジ日時 | 2026-07-06 14:36:43 |
| 合計ジャッジ時間 | 2,138 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
use proconio::{input, marker::Chars};
fn main() {
input! {
s: Chars,
}
let a = s.iter().filter(|&c| c.is_alphabetic()).collect::<Vec<_>>();
let b = s.iter().filter(|&c| c.is_numeric()).collect::<Vec<_>>();
for i in (0..a.len()).rev() {
print!("{}", a[i])
}
for i in 0..b.len() {
print!("{}", b[i])
}
println!()
}