結果
問題 |
No.2224 UFO Game
|
ユーザー |
|
提出日時 | 2024-05-08 18:36:11 |
言語 | Rust (1.83.0 + proconio) |
結果 |
RE
|
実行時間 | - |
コード長 | 244 bytes |
コンパイル時間 | 13,256 ms |
コンパイル使用メモリ | 375,248 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-15 00:52:27 |
合計ジャッジ時間 | 14,453 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 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..].parse::<u64>().unwrap(), _ => s.parse().unwrap(), } ); }