結果
| 問題 |
No.2525 Great Move
|
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2024-10-14 10:33:59 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 515 ms / 2,000 ms |
| コード長 | 282 bytes |
| コンパイル時間 | 16,059 ms |
| コンパイル使用メモリ | 227,060 KB |
| 実行使用メモリ | 8,596 KB |
| 最終ジャッジ日時 | 2024-10-14 10:34:22 |
| 合計ジャッジ時間 | 20,701 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
package main
import . "fmt"
import . "math/big"
func main() {
var h,s string
Scan(&h,&s)
bh,_:=new(Int).SetString(h,10)
bs,_:=new(Int).SetString(s,10)
m:=bh.Sub(bh,bs).Abs(bh).Mod(bh,NewInt(2)).Int64()
if m==1 {
Println("Impossible")
} else {
Println("Possible")
}
}
ID 21712