結果

問題 No.2525 Great Move
ユーザー 転生チートなし転生チートなし
提出日時 2024-10-14 10:33:59
言語 Go
(1.22.1)
結果
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
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 488 ms
8,596 KB
testcase_01 AC 515 ms
8,492 KB
testcase_02 AC 488 ms
8,380 KB
testcase_03 AC 510 ms
8,360 KB
testcase_04 AC 484 ms
8,252 KB
testcase_05 AC 9 ms
6,816 KB
testcase_06 AC 10 ms
6,816 KB
testcase_07 AC 11 ms
6,820 KB
testcase_08 AC 16 ms
6,816 KB
testcase_09 AC 8 ms
6,816 KB
testcase_10 AC 285 ms
8,516 KB
testcase_11 AC 108 ms
8,268 KB
testcase_12 AC 148 ms
8,336 KB
testcase_13 AC 319 ms
8,340 KB
testcase_14 AC 345 ms
8,388 KB
testcase_15 AC 334 ms
8,516 KB
testcase_16 AC 269 ms
8,384 KB
testcase_17 AC 54 ms
8,044 KB
testcase_18 AC 111 ms
8,296 KB
testcase_19 AC 120 ms
8,396 KB
testcase_20 AC 1 ms
6,816 KB
testcase_21 AC 2 ms
6,816 KB
testcase_22 AC 1 ms
6,820 KB
testcase_23 AC 2 ms
6,816 KB
testcase_24 AC 1 ms
6,820 KB
testcase_25 AC 1 ms
6,820 KB
testcase_26 AC 1 ms
6,820 KB
testcase_27 AC 2 ms
6,816 KB
testcase_28 AC 2 ms
6,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
	}
}
0