結果
| 問題 | No.993 青色 |
| コンテスト | |
| ユーザー |
frmon60
|
| 提出日時 | 2020-04-13 17:12:41 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 564 bytes |
| 記録 | |
| コンパイル時間 | 4,399 ms |
| コンパイル使用メモリ | 194,224 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-12 07:53:05 |
| 合計ジャッジ時間 | 2,612 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 |
ソースコード
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);
}
frmon60