結果
問題 | No.2476 Knight Game |
ユーザー | 👑 p-adic |
提出日時 | 2023-09-18 19:00:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 263 bytes |
コンパイル時間 | 78 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-07-05 08:50:12 |
合計ジャッジ時間 | 8,946 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 30 ms
10,752 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
コンパイルメッセージ
Main.py:4: SyntaxWarning: invalid decimal literal print("ABloibc e"[(H==2and(W%4<1or(y-1)/2%2+(W-y)/2%2)or H==3<W and W%2<1or H==4or H>4 and H*W%2<1or H>2and(x+y)%2or H==W==3and(x==y==2)<1or H==3==W-2and x!=2and y==3)<1::2]) Main.py:4: SyntaxWarning: invalid decimal literal print("ABloibc e"[(H==2and(W%4<1or(y-1)/2%2+(W-y)/2%2)or H==3<W and W%2<1or H==4or H>4 and H*W%2<1or H>2and(x+y)%2or H==W==3and(x==y==2)<1or H==3==W-2and x!=2and y==3)<1::2]) Main.py:4: SyntaxWarning: invalid decimal literal print("ABloibc e"[(H==2and(W%4<1or(y-1)/2%2+(W-y)/2%2)or H==3<W and W%2<1or H==4or H>4 and H*W%2<1or H>2and(x+y)%2or H==W==3and(x==y==2)<1or H==3==W-2and x!=2and y==3)<1::2]) Main.py:4: SyntaxWarning: invalid decimal literal print("ABloibc e"[(H==2and(W%4<1or(y-1)/2%2+(W-y)/2%2)or H==3<W and W%2<1or H==4or H>4 and H*W%2<1or H>2and(x+y)%2or H==W==3and(x==y==2)<1or H==3==W-2and x!=2and y==3)<1::2]) Main.py:4: SyntaxWarning: invalid decimal literal print("ABloibc e"[(H==2and(W%4<1or(y-1)/2%2+(W-y)/2%2)or H==3<W and W%2<1or H==4or H>4 and H*W%2<1or H>2and(x+y)%2or H==W==3and(x==y==2)<1or H==3==W-2and x!=2and y==3)<1::2]) Main.py:4: SyntaxWarning: invalid decimal literal print("ABloibc e"[(H==2and(W%4<1or(y-1)/2%2+(W-y)/2%2)or H==3<W and W%2<1or H==4or H>4 and H*W%2<1or H>2and(x+y)%2or H==W==3and(x==y==2)<1or H==3==W-2and x!=2and y==3)<1::2]) Main.py:4: SyntaxWarning: invalid decimal literal print("ABloibc e"[(H==2and(W%4<1or(y-1)/2%2+(W-y)/2%2)or H==3<W and W%2<1or H==4or H>4 and H*W%2<1or H>2and(x+y)%2or H==W==3and(x==y==2)<1or H==3==W-2and x!=2and y==3)<1::2]) Main.py:4: SyntaxWarning: invalid decimal literal print("ABloibc e"[(H==2and(W%4<1or(y-1)/2%2+(W-y)/2%2)or H==3<W and W%2<1or H==4or H>4 and H*W%2<1or H>2and(x+y)%2or H==W==3and(x==y==2)<1or H==3==W-2and x!=2and y==3)<1::2]) Main.py:4: SyntaxWarning: invalid decimal literal print("ABloibc e"[(H==2and(W%4<1or(y-1)/2%2+(W-y)/2%2)or H==3<W and W%2<1or H==4or H>4 and H*W%2<1or H>2and(x+y)%2or H==W==3and(x==y
ソースコード
for t in range(int(input())): H,W,x,y=map(int,input().split()) if H>W:H,W,x,y=W,H,y,x print("ABloibc e"[(H==2and(W%4<1or(y-1)/2%2+(W-y)/2%2)or H==3<W and W%2<1or H==4or H>4 and H*W%2<1or H>2and(x+y)%2or H==W==3and(x==y==2)<1or H==3==W-2and x!=2and y==3)<1::2])