QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#503226#6456. Alternative Bracket Notationxiaowuc1AC ✓367ms42244kbJava83.2kb2024-08-03 17:02:342024-08-03 17:02:41

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 38ms
memory: 36908kb

input:

(())

output:

4,8:8,8:

result:

ok single line: '4,8:8,8:'

Test #2:

score: 0
Accepted
time: 35ms
memory: 39284kb

input:

()

output:

4,4:

result:

ok single line: '4,4:'

Test #3:

score: 0
Accepted
time: 31ms
memory: 39576kb

input:

((())(()))()

output:

5,29:11,17:17,17:23,29:29,29:35,35:

result:

ok single line: '5,29:11,17:17,17:23,29:29,29:35,35:'

Test #4:

score: 0
Accepted
time: 43ms
memory: 37076kb

input:

(()((()))()(()())((()())))

output:

5,75:9,9:15,27:21,27:27,27:33,33:39,51:45,45:51,51:57,75:63,75:69,69:75,75:

result:

ok single line: '5,75:9,9:15,27:21,27:27,27:33,...:51,51:57,75:63,75:69,69:75,75:'

Test #5:

score: 0
Accepted
time: 367ms
memory: 38728kb

input:

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...

output:

8,22968:17,22968:26,22968:35,22968:44,22968:53,22968:62,22968:71,22968:80,22968:89,22968:98,22968:108,22968:118,22968:128,22968:138,22968:148,22968:158,22968:168,22968:178,22968:188,22968:198,22968:208,22968:218,22968:228,22968:238,22968:248,22968:258,22968:268,22968:278,22968:288,22968:298,22968:30...

result:

ok single line: '8,22968:17,22968:26,22968:35,2...,22968:22956,22968:22968,22968:'

Test #6:

score: 0
Accepted
time: 208ms
memory: 39784kb

input:

(()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(...

output:

8,21658:14,14:20,20:26,26:32,32:38,38:44,44:50,50:56,56:62,62:68,68:74,74:80,80:86,86:92,92:98,98:106,106:114,114:122,122:130,130:138,138:146,146:154,154:162,162:170,170:178,178:186,186:194,194:202,202:210,210:218,218:226,226:234,234:242,242:250,250:258,258:266,266:274,274:282,282:290,290:298,298:30...

result:

ok single line: '8,21658:14,14:20,20:26,26:32,3...,21634:21646,21646:21658,21658:'

Test #7:

score: 0
Accepted
time: 31ms
memory: 37016kb

input:

()(())(())

output:

4,4:9,15:15,15:21,27:27,27:

result:

ok single line: '4,4:9,15:15,15:21,27:27,27:'

Test #8:

score: 0
Accepted
time: 75ms
memory: 38896kb

input:

((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))((((()))))...

output:

5,29:11,29:17,29:23,29:29,29:35,59:41,59:47,59:53,59:59,59:65,89:71,89:77,89:83,89:89,89:96,128:104,128:112,128:120,128:128,128:136,168:144,168:152,168:160,168:168,168:176,208:184,208:192,208:200,208:208,208:216,248:224,248:232,248:240,248:248,248:256,288:264,288:272,288:280,288:288,288:296,328:304,...

result:

ok single line: '5,29:11,29:17,29:23,29:29,29:3...:4695,4715:4705,4715:4715,4715:'

Test #9:

score: 0
Accepted
time: 196ms
memory: 39156kb

input:

()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()...

output:

4,4:8,8:14,14:20,20:26,26:32,32:38,38:44,44:50,50:56,56:62,62:68,68:74,74:80,80:86,86:92,92:98,98:106,106:114,114:122,122:130,130:138,138:146,146:154,154:162,162:170,170:178,178:186,186:194,194:202,202:210,210:218,218:226,226:234,234:242,242:250,250:258,258:266,266:274,274:282,282:290,290:298,298:30...

result:

ok single line: '4,4:8,8:14,14:20,20:26,26:32,3...,21622:21634,21634:21646,21646:'

Test #10:

score: 0
Accepted
time: 357ms
memory: 39640kb

input:

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...

output:

7,9875:15,9875:23,9875:31,9875:39,9875:47,9875:55,9875:63,9875:71,9875:79,9875:87,9875:95,9875:104,9875:113,9875:122,9875:131,9875:140,9875:149,9875:158,9875:167,9875:176,9875:185,9875:194,9875:203,9875:212,9875:221,9875:230,9875:239,9875:248,9875:257,9875:266,9875:275,9875:284,9875:293,9875:302,987...

result:

ok single line: '7,9875:15,9875:23,9875:31,9875...,21864:21852,21864:21864,21864:'

Test #11:

score: 0
Accepted
time: 364ms
memory: 40036kb

input:

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...

output:

7,6535:15,6535:23,6535:31,6535:39,6535:47,6535:55,6535:63,6535:71,6535:79,6535:87,6535:95,6535:104,6535:113,6535:122,6535:131,6535:140,6535:149,6535:158,6535:167,6535:176,6535:185,6535:194,6535:203,6535:212,6535:221,6535:230,6535:239,6535:248,6535:257,6535:266,6535:275,6535:284,6535:293,6535:302,653...

result:

ok single line: '7,6535:15,6535:23,6535:31,6535...,22205:22193,22205:22205,22205:'

Test #12:

score: 0
Accepted
time: 349ms
memory: 38824kb

input:

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...

output:

7,4875:15,4875:23,4875:31,4875:39,4875:47,4875:55,4875:63,4875:71,4875:79,4875:87,4875:95,4875:104,4875:113,4875:122,4875:131,4875:140,4875:149,4875:158,4875:167,4875:176,4875:185,4875:194,4875:203,4875:212,4875:221,4875:230,4875:239,4875:248,4875:257,4875:266,4875:275,4875:284,4875:293,4875:302,487...

result:

ok single line: '7,4875:15,4875:23,4875:31,4875...,21864:21852,21864:21864,21864:'

Test #13:

score: 0
Accepted
time: 322ms
memory: 38452kb

input:

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...

output:

7,3875:15,3875:23,3875:31,3875:39,3875:47,3875:55,3875:63,3875:71,3875:79,3875:87,3875:95,3875:104,3875:113,3875:122,3875:131,3875:140,3875:149,3875:158,3875:167,3875:176,3875:185,3875:194,3875:203,3875:212,3875:221,3875:230,3875:239,3875:248,3875:257,3875:266,3875:275,3875:284,3875:293,3875:302,387...

result:

ok single line: '7,3875:15,3875:23,3875:31,3875...,22082:22070,22082:22082,22082:'

Test #14:

score: 0
Accepted
time: 253ms
memory: 40608kb

input:

(((((((((((((()))())((())()())()()))(()))((((())()())()()())((())(())()())()())((()))()())((((((())(())))((())()())())(((()))()())()())((((()))())(((()))())((())()))(((())(())())(()()()()))(()())()())((((()))(()()())(())())(())())(((())(())())((())))(((())())()())(((()))()())((()))()())(((())(()))()...

output:

8,21702:17,11346:25,9255:33,4325:41,1485:49,1205:56,378:63,186:70,170:77,170:84,114:91,106:98,106:106,106:114,114:122,154:130,138:138,138:146,146:154,154:162,162:170,170:178,186:186,186:194,338:202,266:210,242:218,226:226,226:234,234:242,242:250,250:258,258:266,266:274,322:282,290:290,290:298,306:30...

result:

ok single line: '8,21702:17,11346:25,9255:33,43...,21678:21690,21702:21702,21702:'

Test #15:

score: 0
Accepted
time: 269ms
memory: 38304kb

input:

(((((((((((((((()()))())(((())())())())((())()))((((())))(()))(()))((()()())()))((((((()())()()()())())((())()())((())))(((()))(()))())((())()))(((()()())))((())()))((((((()))()())(()))(())(())()()())((()())())(()))(((((()()()))())()()())())())(()()())())(((((()))(())()()())((())(()))(()))(((()()))(...

output:

8,21698:17,14018:25,5054:33,2434:41,1494:49,1044:56,994:63,682:70,346:77,298:84,226:91,194:98,138:106,130:114,130:122,122:130,130:138,138:146,186:154,178:162,170:170,170:178,178:186,186:194,194:202,226:210,218:218,218:226,226:234,282:242,266:250,266:258,266:266,266:274,282:282,282:290,298:298,298:30...

result:

ok single line: '8,21698:17,14018:25,5054:33,24...,21698:21686,21698:21698,21698:'

Test #16:

score: 0
Accepted
time: 255ms
memory: 39088kb

input:

(((((((((((((((((())))((())())(()())())(()())()()())((((()())()())(())())(((()))())(())()())(((()))(())(())())((())())(())(()))((())()))((((((()))()())))((())()))((((())())())())((()())(())))((((((()())))(())()())(((()()())()))((()())(()()))()()())((())())((()))())()())(((((((())))((())())(()))((()(...

output:

8,21715:17,21259:25,4804:33,4434:41,4344:49,3784:57,2734:65,2594:73,1144:80,798:87,582:94,550:102,254:110,206:118,142:126,142:134,142:142,142:150,174:158,166:166,166:174,174:182,198:190,190:198,198:206,206:214,230:222,222:230,230:238,238:246,246:254,254:262,414:270,342:278,318:286,302:294,294:302,30...

result:

ok single line: '8,21715:17,21259:25,4804:33,44...,21703:21703,21703:21715,21715:'

Test #17:

score: 0
Accepted
time: 250ms
memory: 39704kb

input:

(()()(())(()()(()))(()(())(())(()(())(()())(()(()(())((())(()))))(()(()(()(())))((())(())(())(()()()((())(())((())))(((()))))((((()()))((()())))))((()()))((()()())((()(()())(()()(((()()()((()))))))(()(())(()))(()(()(())(()(())(()()))))((()(()))((()())(()(())))))(()((())))))))(()(()()))(()(()(())))((...

output:

8,21691:14,14:20,20:26,32:32,32:38,62:44,44:50,50:56,62:62,62:70,1298:76,76:82,88:88,88:95,103:103,103:112,1118:120,120:128,136:136,136:144,160:152,152:160,160:168,248:176,176:184,248:192,192:200,208:208,208:216,248:224,232:232,232:240,248:248,248:257,1118:265,265:273,313:281,281:289,313:297,297:305...

result:

ok single line: '8,21691:14,14:20,20:26,32:32,3...,21667:21679,21691:21691,21691:'

Test #18:

score: 0
Accepted
time: 250ms
memory: 40740kb

input:

(()()(())(()()()(()()(()()()(()))(()()(()()()()(())(())((()(()(())))((())))(((()))))(()(()()()(((((()))))))(()(()(()))))((())(())((())((()))))((()((())(()(()()))))((()(())(())))))(()(()()()(())))(()(()()()((())(()(())(()()(()()))))((()()(()))((())(())((()()(())))))))((())(()(())((())))((()()(()(()()...

output:

8,21681:14,14:20,20:26,32:32,32:40,1727:46,46:52,52:58,58:66,1597:72,72:78,78:85,121:91,91:97,97:105,105:113,121:121,121:129,705:137,137:145,145:153,329:161,161:169,169:177,177:185,185:193,201:201,201:209,217:217,217:225,297:233,273:241,241:249,273:257,257:265,273:273,273:281,297:289,297:297,297:305...

result:

ok single line: '8,21681:14,14:20,20:26,32:32,3...,21657:21669,21681:21681,21681:'

Test #19:

score: 0
Accepted
time: 254ms
memory: 39276kb

input:

(()()(())(()()(())(())(())(()(()))((()(())(()))((())(())(((()))))))(()()(()()()()(()((()()))))(()()()(()()(()(()))))(()(()())(()())(((())(()))((()()))))((())))(()(())(()(()(()))))(()(()()(()))(()()(())(()(())((()))((()()(())(()(()()(()(()))))((()))((()())))(()()((()()(()()))))))(()(())(((())))))(()(...

output:

8,21678:14,14:20,20:26,32:32,32:39,246:45,45:51,51:57,63:63,63:69,75:75,75:81,87:87,87:94,118:102,102:110,118:118,118:126,246:134,174:142,142:150,158:158,158:166,174:174,174:182,246:190,198:198,198:206,214:214,214:222,246:230,246:238,246:246,246:254,614:262,262:270,270:278,358:286,286:294,294:302,30...

result:

ok single line: '8,21678:14,14:20,20:26,32:32,3...,21678:21666,21678:21678,21678:'

Test #20:

score: 0
Accepted
time: 262ms
memory: 38452kb

input:

(((()()((((((()))))(()())((()())))()((()(()))(()(()(()())(()((())(((()))()())()))())(((()))(())))(())(()))(()()(()(()))())((((())())((())(())(((()))))(())((()))(((())(())((((()))))))())(((((()))()())))(((())((()((())()(()))))((()))(()((())))(())(()((()()))(((())(()(()()()()))))()))(())())(()(()()(()...

output:

8,21680:16,6719:24,1819:30,30:36,36:44,1339:51,131:57,81:63,81:69,81:75,81:81,81:87,99:93,93:99,99:107,131:115,131:123,123:131,131:139,139:147,419:155,179:163,163:171,179:179,179:187,387:195,195:203,339:211,211:219,235:227,227:235,235:243,331:251,251:259,331:267,275:275,275:283,323:291,307:299,307:3...

result:

ok single line: '8,21680:16,6719:24,1819:30,30:...,21656:21668,21680:21680,21680:'

Test #21:

score: 0
Accepted
time: 259ms
memory: 38172kb

input:

((((((((()())(()))()))(((()())()((()(()())()))(())(()))(())()(()())(()(()()))())()(())())(())((())()())()((()))(((()))(((()))()()())(((())()))(())()())((((()(()))))((((())((()(()((())())()((()))))((())(())))(())))(()(())(())(()(()((())))))))(((()((())))(()))))()((()))((((()((()(()))(())))))()(()()((...

output:

8,21684:17,11352:25,1042:32,349:38,86:44,86:50,80:56,68:62,62:68,68:74,80:80,80:86,86:93,317:101,221:109,125:117,117:125,125:133,133:141,189:149,189:157,157:165,181:173,173:181,181:189,189:197,205:205,205:213,221:221,221:229,237:237,237:245,245:253,269:261,261:269,269:277,309:285,285:293,309:301,301...

result:

ok single line: '8,21684:17,11352:25,1042:32,34...,21672:21672,21672:21684,21684:'

Test #22:

score: 0
Accepted
time: 251ms
memory: 42244kb

input:

(()(((())((()())((()())(()))()(()))()()()())())((((())())())()())((((((())))(((())())()((()())))(())((())))(()((()))(()(((())())()(()())())(((()())()())()(()(())))(())))((()())()((())(()())(((()))))((())((()))))((())(()((()(()(())))()(())((())))(()())((()())))((())(())()(()()))((((())()(()(()))())((...

output:

8,21683:14,14:21,169:28,161:34,40:40,40:47,129:53,65:59,59:65,65:72,105:78,90:84,84:90,90:97,105:105,105:113,113:121,129:129,129:137,137:145,145:153,153:161,161:169,169:177,241:185,225:193,217:201,209:209,209:217,217:225,225:233,233:241,241:250,2728:259,2578:267,419:275,299:283,299:291,299:299,299:3...

result:

ok single line: '8,21683:14,14:21,169:28,161:34...,21671:21671,21671:21683,21683:'

Test #23:

score: 0
Accepted
time: 252ms
memory: 38820kb

input:

(((((((((()()())(()))()()()))))(((())()))(((()))())()())((((()()))()())(((())())(())(()))())())((((((((())(())())((())())(()))))(((())()())((()))(()))((())))(()))((())())(()()())())((((((((())())()())))())(())(())())((()()())()())((()())(())(())())(()))((((((((())())())))(())(())()())())((((((())())...

output:

8,21673:15,362:22,210:29,114:36,114:43,114:50,114:56,92:62,80:68,68:74,74:80,80:86,92:92,92:98,98:106,106:114,114:122,154:130,154:138,146:146,146:154,154:162,194:170,186:178,186:186,186:194,194:202,202:210,210:218,354:226,274:234,258:242,258:250,250:258,258:266,266:274,274:282,346:290,314:298,306:30...

result:

ok single line: '8,21673:15,362:22,210:29,114:3...,21661:21661,21661:21673,21673:'

Test #24:

score: 0
Accepted
time: 261ms
memory: 39856kb

input:

((((((((((()()()))(())))(((())())(())()))(())())())(()())())((()))((())))(((((((((()())(()))))()())()()())((())))(())())(((()()))(())())(((())))()())(((((((((())())))()())()())(()))((((()())))(()())()())(((())))()())(()))(((((((((()))(())())((()())))()())((()()))(())()()()))((((())())(()))(((()))(()...

output:

8,21681:15,273:22,225:29,193:36,185:43,161:49,97:55,97:61,85:67,85:73,73:79,79:85,85:91,97:97,97:105,161:113,137:121,129:129,129:137,137:145,153:153,153:161,161:169,177:177,177:185,185:193,193:201,217:209,209:217,217:225,225:233,249:241,249:249,249:257,273:265,273:273,273:281,577:289,465:297,441:305...

result:

ok single line: '8,21681:15,273:22,225:29,193:3...,21657:21669,21669:21681,21681:'

Test #25:

score: 0
Accepted
time: 263ms
memory: 40516kb

input:

((((((((((()))(()))())(((()))((())))((())()()))((())()())((()))())())())((()()()))(())())(((((((((())))()))((())))(()()()))((())))((((())()()())(())()))(((())())())(())()())((((((((()))()())(()())))(((())))())((((()))()))(()))((()))()())((((((((())))(()))(())())())(((()())())((())()())((()))())(())(...

output:

8,21686:15,338:22,274:29,266:36,258:43,186:49,91:55,85:61,73:67,73:73,73:79,85:85,85:91,91:98,146:106,122:114,122:122,122:130,146:138,146:146,146:154,186:162,170:170,170:178,178:186,186:194,226:202,210:210,210:218,218:226,226:234,250:242,250:250,250:258,258:266,266:274,274:282,314:290,314:298,298:30...

result:

ok single line: '8,21686:15,338:22,274:29,266:3...,21662:21674,21674:21686,21686:'

Test #26:

score: 0
Accepted
time: 262ms
memory: 40628kb

input:

(()()(())(())(())(()())(()())(()())(()()()()()(()(())))(()()()()()(()(())(()()(()))))(()()()()(()())(()(()()()()(()(())(())(()(())))))((()())))(()()()(())(())(()())(()(()()()(())(()()(())((()(()))))(()((())))))((())(()()))((())((()(())))))(()()()(())(()()()(())(())))(()()()(())(()(())(()()()())(()()...

output:

8,21665:14,14:20,20:26,32:32,32:38,44:44,44:50,56:56,56:62,74:68,68:74,74:80,92:86,86:92,92:99,115:107,107:115,115:123,195:131,131:139,139:147,147:155,155:163,163:171,195:179,179:187,195:195,195:203,315:211,211:219,219:227,227:235,235:243,243:251,315:259,259:267,275:275,275:283,315:291,291:299,299:3...

result:

ok single line: '8,21665:14,14:20,20:26,32:32,3...,21641:21653,21665:21665,21665:'

Test #27:

score: 0
Accepted
time: 253ms
memory: 39788kb

input:

((())(())(()()()()((()()(()))((())(()))((())(()()))))(()()()(()))(()()()(()()(()))((()(()(()()(())(()()(())))(()(()(()))))(((())((())))))))(()()()(()()(()()(()))(()(())(()))((()())))(()(((()(())))))((())(())))(()()()((()()((()()()))(((()))))(()(())(()())(()()(())((())))(((()()))))(((())))))(()()(())...

output:

8,21674:14,20:20,20:26,32:32,32:39,192:45,45:51,51:57,57:63,63:70,192:77,104:83,83:89,89:96,104:104,104:112,144:120,128:128,128:136,144:144,144:152,192:160,168:168,168:176,192:184,184:192,192:200,240:208,208:216,216:224,224:232,240:240,240:248,536:256,256:264,264:272,272:280,312:288,288:296,296:304,...

result:

ok single line: '8,21674:14,20:20,20:26,32:32,3...,21674:21662,21674:21674,21674:'

Test #28:

score: 0
Accepted
time: 270ms
memory: 40672kb

input:

(()(())(()()())(()()()(())(())(()(()())(()())))(()()()(())(()())(()()())(()()())(()((()(()))(()(())((())(())))(()((())))((()(()))(()(()(())))))))(()()()(())(()())(()()()(()(())(()())))(()()(())(()(()))((())))(()(()))((()()(()()))))(()()()(())(()()()(()((()))))((()(()))))(()()()(())(()(()(())))((()((...

output:

8,21667:14,14:20,26:26,26:32,50:38,38:44,44:50,50:57,163:63,63:69,69:75,75:81,87:87,87:93,99:99,99:107,163:115,115:123,139:131,131:139,139:147,163:155,155:163,163:171,555:179,179:187,187:195,195:203,211:211,211:219,235:227,227:235,235:243,267:251,251:259,259:267,267:275,299:283,283:291,291:299,299:3...

result:

ok single line: '8,21667:14,14:20,26:26,26:32,5...,21643:21655,21655:21667,21667:'

Test #29:

score: 0
Accepted
time: 247ms
memory: 39932kb

input:

((((((()))()()))()((()((()))(()(())(())))((((()())()(()())()))()(())()()(()))()))(((()(()(())(()()())())(((()()))))(()(()()()(()))((()())(()))))()(()(())((()))(())))((()()())()((()())((()((())(()))()())))()())((())())((())(()(())()(())(()(()((()())(())()))()))(((()((())())()))()((())))(()((()())()))...

output:

8,21675:15,305:21,57:27,57:33,45:39,45:45,45:51,51:57,57:63,63:70,305:77,153:83,83:90,105:97,105:105,105:113,153:121,121:129,137:137,137:145,153:153,153:161,297:169,241:177,241:185,201:193,193:201,201:209,209:217,233:225,225:233,233:241,241:249,249:257,265:265,265:273,273:281,281:289,297:297,297:305...

result:

ok single line: '8,21675:15,305:21,57:27,57:33,...,21663:21663,21663:21675,21675:'

Test #30:

score: 0
Accepted
time: 251ms
memory: 41104kb

input:

((((()()(())())())()((((()))(())())(()(()))()(())()())((((())(()))(())((())))()(())())(()))((((()))(())(()()()()))(()))((()())((())(())()())()((()))((())((()))()(()))(())((())(())((()()(()())((())()))((()))())((())())))((((()(())))(()((())))((()(()))()())())((((())))())()((()))((()))(()()))((()(()((...

output:

8,21677:15,345:21,63:27,57:33,33:39,39:45,51:51,51:57,57:63,63:69,69:76,201:83,129:90,105:97,105:105,105:113,121:121,121:129,129:137,161:145,145:153,161:161,161:169,169:177,185:185,185:193,193:201,201:209,329:217,297:225,257:233,241:241,241:249,257:257,257:265,273:273,273:281,297:289,297:297,297:305...

result:

ok single line: '8,21677:15,345:21,63:27,57:33,...,21677:21665,21665:21677,21677:'

Test #31:

score: 0
Accepted
time: 257ms
memory: 38476kb

input:

(((()(())(()(()))(()))((((())()))())()()(()(())((())()()(()(((()))()))))((()))((()))(()()()(())))(()((())(((()(())())()(())())((())())((()())))()(()())(()()((())()((()))())(()(()))())(((())))))(()()(()()(((()))()()((()))((((()))((()()))())((((())))(()(())(()))))()))()())((())(()((((())()))()(()(()))...

output:

8,21674:15,368:21,75:27,27:33,39:39,39:45,63:51,51:57,63:63,63:69,75:75,75:82,128:89,120:96,120:104,112:112,112:120,120:128,128:136,136:144,144:152,272:160,160:168,176:176,176:184,272:192,200:200,200:208,208:216,216:224,272:232,232:240,272:248,264:256,264:264,264:272,272:280,296:288,296:296,296:304,...

result:

ok single line: '8,21674:15,368:21,75:27,27:33,...,21662:21662,21662:21674,21674:'

Test #32:

score: 0
Accepted
time: 101ms
memory: 38716kb

input:

((((((((((()()())(()())()())()()()))(()))())((((((())())(())()()))(((()())(())()())()))(()))(((()))))(((()))(()())()())()())(((((())())(()))())(()))()())(((((((((()())))(()())))(((((())())(())))((())())())(((())())(()))())((()())))((((())))((()))())(()()())(()()))((((((())())(())(())())((()()))())()...

output:

7,9732:14,598:21,486:28,398:35,174:42,166:49,150:56,150:63,126:69,87:75,75:81,81:87,87:94,110:102,102:110,110:118,118:126,126:134,134:142,142:150,150:158,166:166,166:174,174:182,366:190,350:198,270:206,270:214,238:222,230:230,230:238,238:246,254:254,254:262,262:270,270:278,350:286,342:294,310:302,30...

result:

ok single line: '7,9732:14,598:21,486:28,398:35...:9712,9722:9722,9722:9732,9732:'

Test #33:

score: 0
Accepted
time: 115ms
memory: 39408kb

input:

((())(())(()()(())(())(()()()(()())(()()()(()()(()))((())))(()(())))(()()(()()()(()()()(()()()(())(()(())(()))((((())))))(()(())(((()))))((())(()(())(((()))))(()((()(()))))))(()(()((())(()))((())(()))))((()(()(()(()(()(()(()())))))((())((()((())))(((((()))))))))((()))((()())))((()))))(((()))))(()(()...

output:

7,9731:13,19:19,19:25,31:31,31:39,1461:45,45:51,51:57,63:63,63:69,75:75,75:82,254:88,88:94,94:102,102:110,126:118,118:126,126:134,222:142,142:150,150:158,158:166,198:174,174:182,182:190,198:198,198:206,222:214,222:222,222:230,254:238,238:246,254:254,254:263,1211:271,271:279,279:288,1171:296,296:304,...

result:

ok single line: '7,9731:13,19:19,19:25,31:31,31...:9711,9711:9721,9731:9731,9731:'

Test #34:

score: 0
Accepted
time: 107ms
memory: 38236kb

input:

((()(((()())((()()))()(()))((((()())()(()(())((())())))()(((())())()((()))((()))(((((())((()())())))())((())))(()()()))((()()))())(()()))())((()())(((())(())()()(())))()(()()((()())(()()(()()))))(()()(())((()()()))((()))())(()((()())((()((()))())(())))(((()))())()((()(()()(()))())(()())((())))(()()(...

output:

7,9725:15,3135:21,21:28,542:34,94:40,52:46,46:52,52:58,76:64,76:70,70:76,76:82,82:88,94:94,94:102,534:110,510:118,214:126,142:134,134:142,142:150,150:158,214:166,166:174,182:182,182:190,214:198,206:206,206:214,214:222,222:230,470:238,262:246,254:254,254:262,262:270,270:278,294:286,294:294,294:302,31...

result:

ok single line: '7,9725:15,3135:21,21:28,542:34...:9705,9715:9715,9715:9725,9725:'

Test #35:

score: 0
Accepted
time: 92ms
memory: 38564kb

input:

(((((((((((()()))((())())(())())(((())())())()))((((())()))(()()())())((((()))(())(())))(((()))()))(())())((((())(()))(()))((())))()()()))(((((())()))()())((())())(())(())())()())((((((((()())(())))()())(()))((()())))(((())(())()())()())((())))(((((((())())())())(())(()))(((((()))()())(())())(()))((...

output:

7,6394:14,702:21,542:28,542:35,422:42,398:49,198:56,198:63,142:69,87:75,87:81,81:87,87:94,118:102,110:110,110:118,118:126,134:134,134:142,142:150,190:158,182:166,174:174,174:182,182:190,190:198,198:206,286:214,246:222,246:230,238:238,238:246,246:254,278:262,262:270,270:278,278:286,286:294,358:302,35...

result:

ok single line: '7,6394:14,702:21,542:28,542:35...:6374,6384:6384,6384:6394,6394:'

Test #36:

score: 0
Accepted
time: 90ms
memory: 41256kb

input:

(()(()()(())(()(()()(()((()(())(()())))))(()(())(())((()())(()(()(())(()))(()(()(()))((()((((())))))))))))((()()))((()())(()(())((())))))(()()((())((()()(())(()()(())(()())(()()()())(((()()))))(()(())(())(())(())(()())(()()(()))((()))((()))((()()())(()()((())(()((()()(()()))))))((()())(()(()((()))))...

output:

7,6389:13,13:20,528:26,26:32,32:38,44:44,44:51,408:57,57:64,152:70,70:76,76:83,152:89,89:96,152:104,152:112,112:120,128:128,128:136,152:144,144:152,152:160,408:168,168:176,184:184,184:192,200:200,200:208,408:216,232:224,224:232,232:240,408:248,248:256,296:264,264:272,280:280,280:288,296:296,296:304,...

result:

ok single line: '7,6389:13,13:20,528:26,26:32,3...:6369,6389:6379,6389:6389,6389:'

Test #37:

score: 0
Accepted
time: 67ms
memory: 40892kb

input:

((())(()())()(())()((()))(((((())(()())())())(()(())))((((((())(())()((()()(()()))())((()())))()()(((())(())()()(())(()((())()())))(()()())(((((()))()))(()(((()))()()())))))(((())()((())))(()(()()()())))()(()(((()()())())())))()(()(()))((()))(((()(()))())((())())((())())()))((())((()()))()())(())(((...

output:

7,6385:13,19:19,19:25,37:31,31:37,37:43,43:49,55:55,55:61,61:67,79:73,79:79,79:87,2325:94,198:102,166:110,158:118,126:126,126:134,150:142,142:150,150:158,158:166,166:174,198:182,182:190,198:198,198:207,1905:216,1115:224,896:232,688:240,376:248,256:256,256:264,272:272,272:280,280:288,344:296,336:304,...

result:

ok single line: '7,6385:13,19:19,19:25,37:31,31...:6365,6385:6375,6385:6385,6385:'

Test #38:

score: 0
Accepted
time: 74ms
memory: 38372kb

input:

((((((((((()))())())())())())(()()())())(((((()))(()))((())()())())((())(())()))((()()()))(())()())((((((((())()))(()))()()())(()))()())((((())(())())()()()())(((())())((()))()())(()())()())((()))((()))((())))((((((((())))()))((())()())(())())(((((()())()()))(()())(())())()())(((())())(()()))((()())...

output:

7,4723:14,371:21,139:27,99:33,93:39,87:45,81:51,75:57,69:63,69:69,69:75,75:81,81:87,87:93,93:99,99:107,131:115,115:123,123:131,131:139,139:147,299:155,251:163,203:171,187:179,187:187,187:195,203:203,203:211,243:219,227:227,227:235,235:243,243:251,251:259,299:267,275:275,275:283,291:291,291:299,299:3...

result:

ok single line: '7,4723:14,371:21,139:27,99:33,...:4703,4703:4713,4713:4723,4723:'

Test #39:

score: 0
Accepted
time: 83ms
memory: 40068kb

input:

((())(()())(()()(())(()()(())))(()()((()())))((())(()))((())(()()(()))(()(()()())(()()()())(()()((())))(()(()())(()()))))((()()(()()(())(()))(()()(()())(()()()(())(()()()(()()(())((()())))(()(())))(()(()(()()(()(()(()))))))(((()())(()())(()()))))(()()(()(()(()(()))(((())))))((()(()(()()))((()())(()(...

output:

7,4717:13,19:19,19:25,37:31,31:37,37:43,97:49,49:55,55:61,67:67,67:73,97:79,79:85,85:91,97:97,97:105,153:113,113:121,121:129,153:137,153:145,145:153,153:161,193:169,177:177,177:185,193:193,193:201,457:209,217:217,217:225,257:233,233:241,241:249,257:257,257:265,457:273,273:281,305:289,289:297,297:305...

result:

ok single line: '7,4717:13,19:19,19:25,37:31,31...:4697,4717:4707,4717:4717,4717:'

Test #40:

score: 0
Accepted
time: 71ms
memory: 39788kb

input:

(((())())(((((()(()))())(())(()))()(()(())()))(((((())(()))())((())())(())()()))((()((())))(())()((())()()))((()()())(((())))(()()())))(((((())))()(((()))()()(()))())(()((()(()))))(()(()())())((((()()())(()()))((())))(())()((((())(())()()(())()))()())(()(((()))))((()()()())((())(()))(())(((()))(((((...

output:

7,4723:13,31:19,25:25,25:31,31:38,519:45,167:52,119:58,88:64,82:70,70:76,82:82,82:88,88:95,103:103,103:111,119:119,119:127,127:135,167:143,143:151,159:159,159:167,167:175,303:183,303:191,239:199,231:207,215:215,215:223,231:231,231:239,239:247,271:255,263:263,263:271,271:279,287:287,287:295,295:303,3...

result:

ok single line: '7,4723:13,31:19,25:25,25:31,31...:4703,4723:4713,4723:4723,4723:'