結果

問題 No.725 木は明らかに森である
ユーザー Hiromi MotoderaHiromi Motodera
提出日時 2018-09-01 23:11:15
言語 Rust
(1.77.0)
結果
WA  
実行時間 -
コード長 318 bytes
コンパイル時間 3,627 ms
コンパイル使用メモリ 158,764 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-21 18:18:49
合計ジャッジ時間 1,201 ms
ジャッジサーバーID
(参考情報)
judge12 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io;

fn main() {
    println!("{}", reversed(read_line()));
}

fn read_line() -> String {
    let mut line = String::new();
    io::stdin().read_line(&mut line)
        .expect("Failed to read line");
    return line
}

fn reversed(str: String) -> String {
    return str.chars().rev().collect::<String>();
}
0