結果

問題 No.983 Convolution
ユーザー 👑 NachiaNachia
提出日時 2021-01-20 23:08:37
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 104 bytes
コンパイル時間 2,004 ms
コンパイル使用メモリ 159,608 KB
実行使用メモリ 5,040 KB
最終ジャッジ日時 2023-09-19 02:04:12
合計ジャッジ時間 3,878 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
4,380 KB
testcase_02 WA -
testcase_03 AC 6 ms
4,680 KB
testcase_04 AC 6 ms
4,600 KB
testcase_05 WA -
testcase_06 AC 7 ms
4,912 KB
testcase_07 AC 6 ms
4,632 KB
testcase_08 AC 3 ms
4,380 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 3 ms
4,380 KB
testcase_12 WA -
testcase_13 AC 4 ms
4,380 KB
testcase_14 AC 4 ms
4,380 KB
testcase_15 AC 5 ms
4,440 KB
testcase_16 AC 4 ms
4,384 KB
testcase_17 AC 5 ms
4,648 KB
testcase_18 AC 2 ms
4,384 KB
testcase_19 AC 4 ms
4,384 KB
testcase_20 AC 6 ms
4,928 KB
testcase_21 AC 7 ms
4,808 KB
testcase_22 AC 2 ms
4,380 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 6 ms
4,544 KB
testcase_29 AC 10 ms
5,040 KB
testcase_30 AC 5 ms
4,492 KB
testcase_31 AC 4 ms
4,384 KB
testcase_32 AC 6 ms
4,724 KB
testcase_33 WA -
testcase_34 AC 2 ms
4,380 KB
testcase_35 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int N,A[2d5],a=0;
{
    rd(N,A(N));
	rep(i,N) a=a?(A[i]+1)?gcd(a,A[i]):a:A[i];
    wt(a?(ll)a*a:-1ll);
}
0