結果
問題 | No.725 木は明らかに森である |
ユーザー |
![]() |
提出日時 | 2018-08-24 21:58:40 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,208 bytes |
コンパイル時間 | 22,032 ms |
コンパイル使用メモリ | 379,940 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-23 07:19:10 |
合計ジャッジ時間 | 21,925 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
#[allow(unused_imports)]use std::cmp::{min,max};#[allow(unused_imports)]use std::collections::BTreeMap;#[allow(unused_imports)]use std::ops::*;#[allow(unused_imports)]use std::collections::BinaryHeap;#[allow(unused_macros)]macro_rules! tf {($c:expr, $t:expr, $f:expr) => {{if $c { $t } else { $f }}};}fn main() {let ss = read_line();let res = ss.replace("treeone", "forest");println!("{}", res);}#[allow(dead_code)]fn read_line() -> String {let mut ret = String::new();std::io::stdin().read_line(&mut ret).ok();ret.pop();return ret;}#[allow(dead_code)]fn read_i64() -> i64 {let ss = read_line();return ss.parse::<i64>().unwrap();}#[allow(dead_code)]fn read_vec_i64() -> Vec<i64> {let mut res = vec![];let ss = read_line();for ts in ss.split_whitespace() {let x = ts.parse::<i64>().unwrap();res.push(x);}return res;}use std::fmt::Display;#[allow(dead_code)]fn write_vec<T: Display>(xs: &Vec<T>) {if xs.len() == 0 {println!("");return;}print!("{}", xs[0]);for i in 1..xs.len() {print!(" {}", xs[i]);}println!("");}