結果

問題 No.3440 Short Short
コンテスト
ユーザー elphe
提出日時 2026-02-06 22:05:09
言語 Rust
(1.92.0 + proconio + num + itertools)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 353 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,013 ms
コンパイル使用メモリ 193,768 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-02-06 22:05:19
合計ジャッジ時間 3,419 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fn main() {
    let stdin = std::io::read_to_string(std::io::stdin()).unwrap();
    let mut stdin = stdin.split_ascii_whitespace();

    let n: u8 = stdin.next().unwrap().parse().unwrap();

    println!("{}", output(solve(n)));
}

fn solve(n: u8) -> &'static str {
    &"Short"[0..n as usize]
}

fn output(ans: &'static str) -> &'static str {
    ans
}
0