結果
| 問題 |
No.2224 UFO Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-11 19:59:04 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 299 bytes |
| コンパイル時間 | 16,552 ms |
| コンパイル使用メモリ | 219,060 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-20 08:46:10 |
| 合計ジャッジ時間 | 12,060 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
// No.2224 UFO Game
package main
import (
"fmt"
"math"
"strconv"
"strings"
)
func main() {
var s string
fmt.Scan(&s)
if strings.Contains(s, "x") {
s2 := strings.Replace(s, "x", "", 1)
x, _ := strconv.Atoi(s2)
fmt.Println(int(math.Pow(2.0, 32.0)) - x)
} else {
fmt.Println(s)
}
}