結果
問題 | No.1469 programing |
ユーザー |
![]() |
提出日時 | 2021-04-03 18:02:25 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 171 ms / 3,000 ms |
コード長 | 295 bytes |
コンパイル時間 | 17,504 ms |
コンパイル使用メモリ | 378,396 KB |
実行使用メモリ | 11,648 KB |
最終ジャッジ日時 | 2024-12-25 05:43:21 |
合計ジャッジ時間 | 18,507 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
fn main(){ let s = { let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); s.trim_end().to_owned() }; let mut a=s.chars().next().unwrap(); print!("{}",a); for i in s.as_str().chars(){ if i!=a{ print!("{}",i); } a=i; } print!("\n"); }