結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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(s: String) -> String {
    return s.chars().rev().collect::<String>();
}
0