結果

問題 No.993 青色
コンテスト
ユーザー frmon60
提出日時 2020-04-13 17:12:41
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 901µs
コード長 564 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,665 ms
コンパイル使用メモリ 185,896 KB
実行使用メモリ 7,728 KB
最終ジャッジ日時 2026-09-03 18:19:18
合計ジャッジ時間 2,108 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use proconio::fastout;
use proconio::input;
#[allow(unused_imports)]
use proconio::marker::{Chars, Bytes};
#[allow(unused_imports)]
use num::integer::gcd;
#[allow(unused_imports)]
use std::mem::swap;

#[allow(dead_code)]
type Pi = (i32, i32);
#[allow(dead_code)]
fn pri<T: std::fmt::Display>(x: T) {println!("{}", x);}


#[fastout]
fn main() {
    input!{
        mut s:Chars,
    }
    for i in 0..s.len()-1 {
        if s[i] == 'a' && s[i+1] == 'o' {
            s[i] = 'k'; s[i+1] = 'i';
        }
    }
    let s:String = s.into_iter().collect();
    pri(s);
}
0