結果

問題 No.725 木は明らかに森である
コンテスト
ユーザー 特命ログイン
提出日時 2018-08-24 22:46:08
言語 Rust
(1.99.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 2,000 ms
+ 133µs
コード長 416 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,389 ms
コンパイル使用メモリ 177,512 KB
実行使用メモリ 9,904 KB
最終ジャッジ日時 2026-11-20 22:07:52
合計ジャッジ時間 6,262 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use std::io::{Read, stdin};

fn main() {
    let mut buf = String::new();
    stdin().read_to_string(&mut buf).unwrap();
    let mut tok = buf.split_whitespace();
    let mut get = || tok.next().unwrap();
    macro_rules! get {
        ($t:ty) => (get().parse::<$t>().unwrap());
        () => (get!(i64));
    }
    
    let s = get!(String);
    let ans = s.replace("treeone", "forest");
    println!("{}", ans);
}
0