結果

問題 No.1036 Make One With GCD 2
ユーザー tailstails
提出日時 2020-08-06 20:24:22
言語 cLay
(20231016-1)
結果
AC  
実行時間 344 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 2,010 ms
コンパイル使用メモリ 159,948 KB
実行使用メモリ 10,324 KB
最終ジャッジ日時 2023-09-19 00:58:24
合計ジャッジ時間 16,026 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
10,080 KB
testcase_01 AC 47 ms
10,044 KB
testcase_02 AC 39 ms
10,072 KB
testcase_03 AC 7 ms
6,884 KB
testcase_04 AC 11 ms
9,708 KB
testcase_05 AC 2 ms
5,344 KB
testcase_06 AC 2 ms
5,396 KB
testcase_07 AC 15 ms
7,644 KB
testcase_08 AC 12 ms
7,400 KB
testcase_09 AC 192 ms
10,028 KB
testcase_10 AC 179 ms
10,128 KB
testcase_11 AC 195 ms
10,324 KB
testcase_12 AC 180 ms
10,060 KB
testcase_13 AC 339 ms
10,072 KB
testcase_14 AC 344 ms
10,032 KB
testcase_15 AC 323 ms
10,056 KB
testcase_16 AC 326 ms
10,200 KB
testcase_17 AC 335 ms
10,028 KB
testcase_18 AC 2 ms
5,356 KB
testcase_19 AC 2 ms
5,552 KB
testcase_20 AC 2 ms
5,448 KB
testcase_21 AC 2 ms
5,384 KB
testcase_22 AC 319 ms
10,044 KB
testcase_23 AC 235 ms
10,128 KB
testcase_24 AC 331 ms
10,216 KB
testcase_25 AC 302 ms
10,040 KB
testcase_26 AC 313 ms
10,272 KB
testcase_27 AC 2 ms
5,392 KB
testcase_28 AC 2 ms
5,396 KB
testcase_29 AC 2 ms
5,344 KB
testcase_30 AC 2 ms
5,384 KB
testcase_31 AC 2 ms
5,456 KB
testcase_32 AC 2 ms
5,452 KB
testcase_33 AC 2 ms
5,608 KB
testcase_34 AC 2 ms
5,396 KB
testcase_35 AC 2 ms
5,412 KB
testcase_36 AC 2 ms
5,508 KB
testcase_37 AC 2 ms
5,396 KB
testcase_38 AC 43 ms
10,068 KB
testcase_39 AC 51 ms
10,028 KB
testcase_40 AC 235 ms
10,072 KB
testcase_41 AC 217 ms
10,048 KB
testcase_42 AC 216 ms
10,136 KB
testcase_43 AC 180 ms
10,076 KB
testcase_44 AC 202 ms
10,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,r,f,b,z,a[6d5];{rd(n,a(n));rep(l,n){while(r<=n&&gcd(f-l?a[l]:0,b)-1)b=gcd(b,a[r++]);z-=r+~n;if(f==l){b=0;rrep(i,l,f=r)a[i]=b=gcd(b,a[i]);b=0;}}wt(z);}
0