結果

問題 No.3353 リウヴィルの定数計算
コンテスト
ユーザー elphe
提出日時 2025-11-14 21:57:41
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 392 bytes
コンパイル時間 12,577 ms
コンパイル使用メモリ 398,900 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-11-14 21:58:02
合計ジャッジ時間 12,202 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::{fastout, input};

#[fastout]
fn main() {
    input! {
        n: usize,
    }

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

fn solve(n: usize) -> char {
    let c = ".1100010000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010";
	char::from_u32(c.as_bytes()[n] as u32).unwrap()
}

fn output(ans: char) -> char {
	ans
}
0