結果
問題 | No.208 王将 |
ユーザー |
|
提出日時 | 2019-04-07 12:23:34 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 606 bytes |
コンパイル時間 | 2,264 ms |
コンパイル使用メモリ | 149,004 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-16 10:06:56 |
合計ジャッジ時間 | 3,137 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
func main()var ss: [][]chardo ss :: cui@input().split(" ")var x: int :: ss[0].toInt(&)var y: int :: ss[1].toInt(&)do ss :: cui@input().split(" ")var x2: int :: ss[0].toInt(&)var y2: int :: ss[1].toInt(&)var ans: int :: [x.abs(), y.abs()].max()block bif(x.abs() <> y.abs())break bend ifif(x2.abs() <> y2.abs())break bend ifif(x.sign() <> x2.sign())break bend ifif(y.sign() <> y2.sign())break bend ifif(x.abs() < x2.abs())break bend ifif(y.abs() < y2.abs())break bend ifdo ans :+ 1end blockdo cui@print("\{ans}\n")end func