結果

問題 No.2074 Product is Square ?
ユーザー tailstails
提出日時 2022-09-16 22:42:00
言語 cLay
(20240104-1)
結果
AC  
実行時間 1,369 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 8,331 ms
コンパイル使用メモリ 224,812 KB
実行使用メモリ 10,728 KB
最終ジャッジ日時 2023-08-23 16:17:01
合計ジャッジ時間 20,180 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
10,500 KB
testcase_01 AC 267 ms
10,500 KB
testcase_02 AC 250 ms
10,580 KB
testcase_03 AC 264 ms
10,588 KB
testcase_04 AC 268 ms
10,572 KB
testcase_05 AC 271 ms
10,524 KB
testcase_06 AC 267 ms
10,520 KB
testcase_07 AC 283 ms
10,524 KB
testcase_08 AC 270 ms
10,644 KB
testcase_09 AC 256 ms
10,540 KB
testcase_10 AC 255 ms
10,580 KB
testcase_11 AC 62 ms
10,500 KB
testcase_12 AC 241 ms
10,668 KB
testcase_13 AC 1,338 ms
10,576 KB
testcase_14 AC 134 ms
10,728 KB
testcase_15 AC 60 ms
10,588 KB
testcase_16 AC 257 ms
10,520 KB
testcase_17 AC 1,369 ms
10,488 KB
testcase_18 AC 149 ms
10,512 KB
testcase_19 AC 59 ms
10,516 KB
testcase_20 AC 260 ms
10,668 KB
testcase_21 AC 1,316 ms
10,500 KB
testcase_22 AC 127 ms
10,680 KB
testcase_23 AC 59 ms
10,580 KB
testcase_24 AC 265 ms
10,604 KB
testcase_25 AC 1,328 ms
10,536 KB
testcase_26 AC 138 ms
10,508 KB
testcase_27 AC 60 ms
10,544 KB
testcase_28 AC 276 ms
10,600 KB
testcase_29 AC 1,284 ms
10,516 KB
testcase_30 AC 129 ms
10,528 KB
testcase_31 AC 36 ms
10,496 KB
testcase_32 AC 9 ms
10,584 KB
testcase_33 AC 9 ms
10,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@t;
rep(t){
	set<ll>s;
	ll@n;
	rep(n){
		ll@a,f[64],e[64];
		REP(i,Factor(a,f,e)){
			if(e[i]&1){
				auto x=s.insert(f[i]);
				if(!x.second){
					s.erase(x.first);
				}
			}
		}
	}
	wt(s.empty()?"Yes":"No");
}
0