結果

問題 No.1192 半部分列
ユーザー tailstails
提出日時 2020-09-01 20:19:40
言語 cLay
(20240104-1)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 1,926 ms
コンパイル使用メモリ 159,080 KB
実行使用メモリ 106,488 KB
最終ジャッジ日時 2023-09-19 01:05:53
合計ジャッジ時間 4,487 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,056 KB
testcase_01 AC 2 ms
5,064 KB
testcase_02 AC 1 ms
5,064 KB
testcase_03 AC 2 ms
4,996 KB
testcase_04 AC 2 ms
5,064 KB
testcase_05 AC 1 ms
5,000 KB
testcase_06 AC 73 ms
104,496 KB
testcase_07 AC 63 ms
106,488 KB
testcase_08 AC 63 ms
106,256 KB
testcase_09 AC 63 ms
104,756 KB
testcase_10 AC 2 ms
5,376 KB
testcase_11 AC 1 ms
5,064 KB
testcase_12 AC 81 ms
104,584 KB
testcase_13 AC 13 ms
28,852 KB
testcase_14 AC 24 ms
53,688 KB
testcase_15 AC 31 ms
71,524 KB
testcase_16 AC 24 ms
58,820 KB
testcase_17 AC 36 ms
84,812 KB
testcase_18 AC 3 ms
8,348 KB
testcase_19 AC 11 ms
22,168 KB
testcase_20 AC 3 ms
5,000 KB
testcase_21 AC 2 ms
4,996 KB
testcase_22 AC 1 ms
5,060 KB
testcase_23 AC 44 ms
104,448 KB
testcase_24 AC 3 ms
7,500 KB
testcase_25 AC 2 ms
5,060 KB
testcase_26 AC 2 ms
5,000 KB
testcase_27 AC 22 ms
52,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

char*z,c,s[2d5],t[2d5];ll k,n,p[2d5],q[2d5][128];{rd(s@n,t@p[n]);rrep(i,n){for(p[i]=p[i+1];~p[i]&&t[--p[i]]-s[i];);rep(j,128)q[n][j]=n,q[i][j]=s[i]-j?q[i+1][j]:i;}for(~*p?cout<<-1,z=0:z=t-1;z++;cout<<c,k=q[k][c]+1,z=index(z,c))for(c=97;p[q[k][c]]>=z-t;c++);}
0