結果
| 問題 | No.3598 Queen vs. King |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2026-07-24 21:56:28 |
| 言語 | cLay (20250308-1 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 293 bytes |
| 記録 | |
| コンパイル時間 | 2,261 ms |
| コンパイル使用メモリ | 189,220 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2026-07-24 21:59:39 |
| 合計ジャッジ時間 | 8,991 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 -- * 1 |
| other | -- * 10 |
ソースコード
ll a,b;
ll m(ll x,ll y){
if(a==x||b==y||a+b==x+y||a-b==x-y){
a=x;
b=y;
wt(a,b);
return 1;
}
return 0;
}
{
ll@t;
rep(t){
ll@h,@w;
a=1;
b=1;
while(1){
ll@x,@y;
if(x==0){
break;
}
m(x-1,y)||m(x,y-1)||m(x-2,y)||m(x,y-2)||(x<y?m(1,y-x+1):m(x-y+1,1));
}
}
}
tails