結果
問題 | No.2224 UFO Game |
ユーザー |
![]() |
提出日時 | 2023-02-28 23:09:38 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 286 bytes |
コンパイル時間 | 23,256 ms |
コンパイル使用メモリ | 401,812 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 00:50:45 |
合計ジャッジ時間 | 16,204 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
fn main() {let mut s = String::new();std::io::stdin().read_line(&mut s).ok();let s = s.trim();println!("{}",if s.contains('x') {(1usize << 32) - s[1..].parse::<usize>().unwrap()} else {s.parse().unwrap()});}