結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー Owlet
提出日時 2022-08-08 07:25:54
言語 Rust
(1.83.0 + proconio)
結果
RE  
実行時間 -
コード長 488 bytes
コンパイル時間 12,508 ms
コンパイル使用メモリ 384,504 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-18 18:42:13
合計ジャッジ時間 14,504 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 RE * 1
other AC * 10 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io;

fn main() {
    let mut input = String::new();

    io::stdin()
        .read_line(&mut input)
        .expect("Failed to read line.");
    let input_vec: Vec<&str> = input.split_whitespace().collect();

    let vec_first:i64 = input_vec[0].parse().expect("Can't convert!");
    let vec_second:u32 = input_vec[1].parse().expect("Can't convert!");
    let target_num = 998244353;

    println!("{}", target_num);
    println!("{}", vec_first.pow(vec_second) % target_num);
}
0