結果

問題 No.1036 Make One With GCD 2
ユーザー tailstails
提出日時 2020-08-06 20:07:53
言語 cLay
(20240104-1)
結果
AC  
実行時間 340 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 2,634 ms
コンパイル使用メモリ 159,844 KB
実行使用メモリ 10,232 KB
最終ジャッジ日時 2023-09-19 00:58:48
合計ジャッジ時間 13,335 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
10,020 KB
testcase_01 AC 41 ms
10,044 KB
testcase_02 AC 39 ms
10,036 KB
testcase_03 AC 5 ms
6,804 KB
testcase_04 AC 8 ms
9,748 KB
testcase_05 AC 2 ms
5,348 KB
testcase_06 AC 2 ms
5,352 KB
testcase_07 AC 12 ms
7,836 KB
testcase_08 AC 10 ms
7,332 KB
testcase_09 AC 189 ms
10,080 KB
testcase_10 AC 176 ms
10,064 KB
testcase_11 AC 192 ms
10,048 KB
testcase_12 AC 177 ms
10,020 KB
testcase_13 AC 336 ms
10,024 KB
testcase_14 AC 340 ms
9,996 KB
testcase_15 AC 321 ms
9,992 KB
testcase_16 AC 322 ms
10,040 KB
testcase_17 AC 331 ms
10,084 KB
testcase_18 AC 2 ms
5,384 KB
testcase_19 AC 2 ms
5,544 KB
testcase_20 AC 2 ms
5,372 KB
testcase_21 AC 2 ms
5,388 KB
testcase_22 AC 316 ms
10,064 KB
testcase_23 AC 234 ms
10,060 KB
testcase_24 AC 328 ms
10,232 KB
testcase_25 AC 300 ms
10,048 KB
testcase_26 AC 310 ms
10,108 KB
testcase_27 AC 2 ms
5,416 KB
testcase_28 AC 2 ms
5,336 KB
testcase_29 AC 2 ms
5,316 KB
testcase_30 AC 2 ms
5,332 KB
testcase_31 AC 2 ms
5,380 KB
testcase_32 AC 3 ms
5,368 KB
testcase_33 AC 2 ms
5,420 KB
testcase_34 AC 2 ms
5,340 KB
testcase_35 AC 2 ms
5,340 KB
testcase_36 AC 2 ms
5,524 KB
testcase_37 AC 2 ms
5,368 KB
testcase_38 AC 43 ms
10,064 KB
testcase_39 AC 46 ms
10,128 KB
testcase_40 AC 233 ms
10,088 KB
testcase_41 AC 211 ms
10,136 KB
testcase_42 AC 212 ms
10,052 KB
testcase_43 AC 177 ms
10,052 KB
testcase_44 AC 198 ms
10,064 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){rrep(i,l,r-1)a[i]=gcd(((a+i))(2));f=r;b=0;}}wt(z);}
0