QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#879566#7663. Loop Invariantucup-team5957#TL 10ms16024kbC++201.4kb2025-02-02 06:17:392025-02-02 06:17:39

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3712kb

input:

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

output:

no

result:

ok OK no

Test #2:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

()(())()

output:

(())()()

result:

ok OK possible

Test #3:

score: 0
Accepted
time: 10ms
memory: 16024kb

input:

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

output:

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

result:

ok OK possible

Test #4:

score: 0
Accepted
time: 10ms
memory: 15932kb

input:

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

output:

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

result:

ok OK possible

Test #5:

score: 0
Accepted
time: 10ms
memory: 16024kb

input:

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

output:

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

result:

ok OK possible

Test #6:

score: 0
Accepted
time: 9ms
memory: 16024kb

input:

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

output:

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

result:

ok OK possible

Test #7:

score: 0
Accepted
time: 8ms
memory: 15796kb

input:

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

output:

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

result:

ok OK possible

Test #8:

score: 0
Accepted
time: 10ms
memory: 14096kb

input:

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

output:

no

result:

ok OK no

Test #9:

score: 0
Accepted
time: 8ms
memory: 16024kb

input:

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

output:

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

result:

ok OK possible

Test #10:

score: 0
Accepted
time: 10ms
memory: 16016kb

input:

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

output:

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

result:

ok OK possible

Test #11:

score: 0
Accepted
time: 8ms
memory: 14100kb

input:

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

output:

no

result:

ok OK no

Test #12:

score: -100
Time Limit Exceeded

input:

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

output:


result: