結果

問題 No.2525 Great Move
ユーザー IDA-KeitoIDA-Keito
提出日時 2023-11-20 21:56:00
言語 Swift
(5.10.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 1,208 ms
コンパイル使用メモリ 136,708 KB
実行使用メモリ 9,160 KB
最終ジャッジ日時 2023-11-20 21:56:08
合計ジャッジ時間 3,010 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,160 KB
testcase_01 AC 29 ms
9,160 KB
testcase_02 AC 29 ms
9,160 KB
testcase_03 AC 29 ms
9,160 KB
testcase_04 AC 29 ms
9,160 KB
testcase_05 AC 8 ms
8,576 KB
testcase_06 AC 9 ms
8,576 KB
testcase_07 AC 8 ms
8,576 KB
testcase_08 AC 9 ms
8,576 KB
testcase_09 AC 13 ms
8,576 KB
testcase_10 AC 22 ms
9,012 KB
testcase_11 AC 13 ms
8,832 KB
testcase_12 AC 15 ms
8,960 KB
testcase_13 AC 22 ms
9,024 KB
testcase_14 AC 23 ms
9,056 KB
testcase_15 AC 23 ms
9,052 KB
testcase_16 AC 20 ms
8,996 KB
testcase_17 AC 11 ms
8,704 KB
testcase_18 AC 13 ms
8,832 KB
testcase_19 AC 14 ms
8,832 KB
testcase_20 AC 7 ms
8,576 KB
testcase_21 AC 8 ms
8,576 KB
testcase_22 AC 8 ms
8,576 KB
testcase_23 AC 8 ms
8,576 KB
testcase_24 AC 7 ms
8,576 KB
testcase_25 AC 7 ms
8,576 KB
testcase_26 AC 8 ms
8,576 KB
testcase_27 AC 7 ms
8,576 KB
testcase_28 AC 8 ms
8,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let splitInput = readLine()!.split(separator: " ")

// leastSignificantDigit
let lsdForH = Int(String(splitInput[0].last!))!
let lsdForS = Int(String(splitInput[1].last!))!

if (lsdForH - lsdForS) % 2 == 0 {
	print("Possible")
} else {
	print("Impossible")
}
0