結果

問題 No.2255 Determinant Sum
ユーザー tailstails
提出日時 2023-03-24 22:50:00
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 2,822 ms
コンパイル使用メモリ 175,836 KB
実行使用メモリ 4,680 KB
最終ジャッジ日時 2023-10-18 21:23:37
合計ジャッジ時間 3,268 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 7 ms
4,680 KB
testcase_07 AC 5 ms
4,348 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 6 ms
4,680 KB
testcase_11 AC 2 ms
4,348 KB
testcase_12 WA -
testcase_13 AC 2 ms
4,348 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 4 ms
4,548 KB
testcase_17 WA -
testcase_18 AC 3 ms
4,348 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@t;
rep(t){
	ll@n,@p,@a[n][n];
	if(p==2){
		rep(y,n){
			ll b=-1;
			rep(x,n){
				if(a[y][x]){
					b=x;
				}
			}
			if(b<0){
				goto zero;
			}
			rep(z,y+1,n){
				if(a[z][b]){
					rep(x,n){
						a[z][x]^=a[y][x];
					}
				}
			}
		}
		wt(1);
	}else{
		zero:;
		wt(0);
	}
}
0