結果
問題 | No.2224 UFO Game |
ユーザー |
|
提出日時 | 2024-05-08 18:38:51 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 13,352 ms |
コンパイル使用メモリ | 378,596 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-15 00:55:11 |
合計ジャッジ時間 | 13,340 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
fn main() {let mut s = String::new();std::io::stdin().read_line(&mut s).ok();let c = s.chars().next().unwrap();println!("{}",match c {'x' => 2u64.pow(32) - s[1..].trim().parse::<u64>().unwrap(),_ => s.trim().parse().unwrap(),});}