結果
| 問題 | No.292 芸名 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-04-11 15:39:17 | 
| 言語 | Rust (1.83.0 + proconio) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 573 bytes | 
| コンパイル時間 | 11,453 ms | 
| コンパイル使用メモリ | 377,600 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-19 03:14:36 | 
| 合計ジャッジ時間 | 12,261 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
use std::io::*;
fn main() {
    let mut s: String = String::new();
    std::io::stdin().read_to_string(&mut s).ok();
    let mut itr = s.trim().split_whitespace();
    let s: Vec<char> = itr.next().unwrap().chars().collect();
    let a: usize = itr.next().unwrap().parse().unwrap();
    let b: usize = itr.next().unwrap().parse().unwrap();
    let mut out = Vec::new();
    for i in 0..s.len() {
        if i == a || i == b {
            continue;
        }
        write!(out, "{}", s[i]).ok();
    }
    writeln!(out, "").ok();
    stdout().write_all(&out).unwrap();
}
            
            
            
        