結果

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

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 9 ms
10,600 KB
testcase_01 AC 248 ms
10,576 KB
testcase_02 AC 261 ms
10,608 KB
testcase_03 AC 263 ms
10,536 KB
testcase_04 AC 270 ms
10,608 KB
testcase_05 AC 259 ms
10,592 KB
testcase_06 AC 259 ms
10,548 KB
testcase_07 AC 273 ms
10,544 KB
testcase_08 AC 253 ms
10,608 KB
testcase_09 AC 243 ms
10,668 KB
testcase_10 AC 259 ms
10,604 KB
testcase_11 AC 59 ms
10,700 KB
testcase_12 AC 234 ms
10,632 KB
testcase_13 AC 1,279 ms
10,536 KB
testcase_14 AC 131 ms
10,628 KB
testcase_15 AC 58 ms
10,664 KB
testcase_16 AC 246 ms
10,608 KB
testcase_17 AC 1,319 ms
10,692 KB
testcase_18 AC 153 ms
10,604 KB
testcase_19 AC 57 ms
10,612 KB
testcase_20 AC 260 ms
10,560 KB
testcase_21 AC 1,288 ms
10,544 KB
testcase_22 AC 120 ms
10,556 KB
testcase_23 AC 59 ms
10,676 KB
testcase_24 AC 253 ms
10,632 KB
testcase_25 AC 1,276 ms
10,600 KB
testcase_26 AC 145 ms
10,556 KB
testcase_27 AC 59 ms
10,708 KB
testcase_28 AC 273 ms
10,632 KB
testcase_29 AC 1,287 ms
10,616 KB
testcase_30 AC 124 ms
10,624 KB
testcase_31 AC 30 ms
10,540 KB
testcase_32 AC 9 ms
10,668 KB
testcase_33 AC 9 ms
10,612 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