結果

問題 No.725 木は明らかに森である
コンテスト
ユーザー 特命ログイン
提出日時 2018-08-24 22:46:08
言語 Rust
(1.93.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 416 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,093 ms
コンパイル使用メモリ 199,412 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2026-03-08 01:45:22
合計ジャッジ時間 3,815 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

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