QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#549746#4400. Homeworkhztmax0100 ✓42ms25212kbC++17823b2024-09-06 20:53:332024-09-06 20:53:38

Judging History

你现在查看的是最新测评结果

  • [2024-09-06 20:53:38]
  • 评测
  • 测评结果:100
  • 用时:42ms
  • 内存:25212kb
  • [2024-09-06 20:53:33]
  • 提交

answer

#include <iostream>
#include <stack>

using namespace std;

const int N = 1e6 + 5; 

int n, tot, f[N], g[N];
stack<int> ns, os; 

int main () {
  cin.tie(0)->sync_with_stdio(0);
  string s;
  cin >> s;
  for (auto c : s) 
    n += c == '?';
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == 'm') {
      os.push(s[i + 1] == 'a');
    }
    else if (s[i] == '?') {
      ++tot, f[tot] = 1, g[tot] = n; 
      ns.push(tot); 
    }
    else if (s[i] == ')') {
      int v = ns.top();
      ns.pop();
      int u = ns.top();
      if (!os.top()) {
        f[u] = min(f[u], f[v]);
        g[u] = g[u] + g[v] - n - 1; 
      }
      else {
        f[u] = f[u] + f[v];
        g[u] = max(g[u], g[v]);
      }
      os.pop();
    }
  }
  cout << g[1] - f[1] + 1 << '\n';
  return 0; 
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 1ms
memory: 5644kb

input:

min(max(?,max(min(?,min(?,?)),?)),min(max(?,?),max(?,?)))

output:

6

result:

ok single line: '6'

Test #2:

score: 10
Accepted
time: 1ms
memory: 5572kb

input:

max(max(?,min(max(?,min(?,?)),?)),max(max(?,?),max(?,?)))

output:

4

result:

ok single line: '4'

Test #3:

score: 10
Accepted
time: 1ms
memory: 5528kb

input:

min(min(min(?,min(?,?)),min(?,?)),min(?,min(min(?,?),?)))

output:

1

result:

ok single line: '1'

Test #4:

score: 10
Accepted
time: 1ms
memory: 5872kb

input:

max(max(max(?,?),?),max(max(?,?),min(max(?,?),max(?,?))))

output:

3

result:

ok single line: '3'

Test #5:

score: 10
Accepted
time: 1ms
memory: 5636kb

input:

min(max(?,min(?,?)),max(min(max(?,?),?),min(max(?,?),?)))

output:

6

result:

ok single line: '6'

Test #6:

score: 10
Accepted
time: 1ms
memory: 5588kb

input:

max(max(?,min(max(?,?),?)),max(max(max(?,?),min(?,?)),?))

output:

4

result:

ok single line: '4'

Test #7:

score: 10
Accepted
time: 1ms
memory: 5668kb

input:

min(min(max(min(?,?),?),?),min(?,max(max(?,?),min(?,?))))

output:

6

result:

ok single line: '6'

Test #8:

score: 10
Accepted
time: 1ms
memory: 5652kb

input:

min(min(min(min(?,?),max(?,?)),min(min(?,?),min(?,?))),?)

output:

2

result:

ok single line: '2'

Test #9:

score: 10
Accepted
time: 1ms
memory: 5600kb

input:

max(max(?,?),max(max(max(?,?),max(?,?)),max(?,max(?,?))))

output:

1

result:

ok single line: '1'

Test #10:

score: 10
Accepted
time: 1ms
memory: 5596kb

input:

min(max(min(?,?),?),max(min(?,max(min(max(?,?),?),?)),?))

output:

7

result:

ok single line: '7'

Test #11:

score: 10
Accepted
time: 1ms
memory: 5468kb

input:

max(?,min(max(?,min(?,?)),max(max(?,?),min(?,max(?,?)))))

output:

7

result:

ok single line: '7'

Test #12:

score: 10
Accepted
time: 1ms
memory: 5588kb

input:

min(min(max(?,?),?),max(max(?,min(max(?,?),?)),max(?,?)))

output:

7

result:

ok single line: '7'

Test #13:

score: 10
Accepted
time: 1ms
memory: 5828kb

input:

min(min(min(?,?),min(?,max(?,?))),min(?,min(?,min(?,?))))

output:

2

result:

ok single line: '2'

Test #14:

score: 10
Accepted
time: 1ms
memory: 5600kb

input:

min(max(max(?,?),max(?,max(max(?,?),max(?,?)))),max(?,?))

output:

7

result:

ok single line: '7'

Test #15:

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

input:

max(min(?,?),min(max(min(?,?),min(?,max(?,min(?,?)))),?))

output:

7

result:

ok single line: '7'

Test #16:

score: 10
Accepted
time: 1ms
memory: 5644kb

input:

min(?,min(?,max(max(max(min(?,min(min(?,?),?)),?),?),?)))

output:

7

result:

ok single line: '7'

Test #17:

score: 10
Accepted
time: 1ms
memory: 5660kb

input:

min(?,min(?,max(?,max(min(min(min(?,min(?,?)),?),?),?))))

output:

7

result:

ok single line: '7'

Test #18:

score: 10
Accepted
time: 1ms
memory: 5688kb

input:

min(?,min(min(min(?,min(?,min(?,min(min(?,?),?)))),?),?))

output:

1

result:

ok single line: '1'

Test #19:

score: 10
Accepted
time: 1ms
memory: 5832kb

input:

max(max(max(?,max(?,max(?,max(?,max(max(?,?),?))))),?),?)

output:

1

result:

ok single line: '1'

Test #20:

score: 10
Accepted
time: 1ms
memory: 5636kb

input:

min(max(?,min(max(min(max(min(?,max(?,?)),?),?),?),?)),?)

output:

8

result:

ok single line: '8'

Test #21:

score: 10
Accepted
time: 1ms
memory: 5856kb

input:

min(min(?,?),min(min(min(?,?),min(min(?,min(?,?)),?)),?))

output:

1

result:

ok single line: '1'

Test #22:

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

input:

max(max(max(?,?),max(max(?,?),?)),max(max(?,?),max(?,?)))

output:

1

result:

ok single line: '1'

Test #23:

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

input:

min(max(?,min(max(?,?),?)),min(?,min(?,min(?,max(?,?)))))

output:

5

result:

ok single line: '5'

Test #24:

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

input:

min(?,max(min(min(max(?,?),?),max(?,?)),min(min(?,?),?)))

output:

6

result:

ok single line: '6'

Test #25:

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

input:

min(min(min(?,?),max(?,?)),min(min(?,?),min(?,?)))

output:

2

result:

ok single line: '2'

Test #26:

score: 10
Accepted
time: 1ms
memory: 5576kb

input:

min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?)))

output:

1

result:

ok single line: '1'

Test #27:

score: 10
Accepted
time: 1ms
memory: 5576kb

input:

max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?)))

output:

4

result:

ok single line: '4'

Test #28:

score: 10
Accepted
time: 1ms
memory: 5860kb

input:

max(?,?)

output:

1

result:

ok single line: '1'

Subtask #2:

score: 13
Accepted

Dependency #1:

100%
Accepted

Test #29:

score: 13
Accepted
time: 1ms
memory: 5576kb

input:

min(max(min(?,max(?,max(?,?))),min(min(?,min(?,?)),?)),min(max(?,max(?,?)),min(min(?,?),min(min(?,?),?))))

output:

9

result:

ok single line: '9'

Test #30:

score: 13
Accepted
time: 1ms
memory: 5532kb

input:

max(min(max(?,max(max(?,max(?,?)),?)),max(?,min(?,?))),min(max(?,min(?,?)),min(min(?,?),max(min(?,?),?))))

output:

13

result:

ok single line: '13'

Test #31:

score: 13
Accepted
time: 1ms
memory: 5504kb

input:

min(max(min(?,min(?,?)),min(min(?,min(?,?)),min(min(?,?),?))),min(min(?,?),min(max(?,?),min(min(?,?),?))))

output:

8

result:

ok single line: '8'

Test #32:

score: 13
Accepted
time: 1ms
memory: 5652kb

input:

max(max(min(?,?),max(?,max(?,max(min(?,?),?)))),min(max(max(?,max(?,?)),max(?,?)),max(max(?,?),max(?,?))))

output:

8

result:

ok single line: '8'

Test #33:

score: 13
Accepted
time: 1ms
memory: 5576kb

input:

min(max(min(?,max(?,?)),min(max(min(?,?),?),max(?,?))),max(min(?,max(?,?)),min(max(min(?,?),?),max(?,?))))

output:

11

result:

ok single line: '11'

Test #34:

score: 13
Accepted
time: 1ms
memory: 5872kb

input:

max(min(?,?),min(?,min(?,min(min(max(min(?,?),min(?,?)),max(?,min(min(?,?),max(?,?)))),max(?,min(?,?))))))

output:

14

result:

ok single line: '14'

Test #35:

score: 13
Accepted
time: 1ms
memory: 5872kb

input:

max(min(?,max(?,min(?,?))),min(min(max(?,?),min(?,max(min(max(?,min(?,?)),?),min(?,max(max(?,?),?))))),?))

output:

14

result:

ok single line: '14'

Test #36:

score: 13
Accepted
time: 1ms
memory: 5796kb

input:

min(min(?,?),min(min(min(min(?,min(min(?,?),min(min(?,?),?))),min(?,min(?,?))),max(?,min(min(?,?),?))),?))

output:

4

result:

ok single line: '4'

Test #37:

score: 13
Accepted
time: 1ms
memory: 5648kb

input:

max(max(max(max(max(?,?),max(?,?)),max(max(?,?),max(?,?))),max(?,max(?,max(?,?)))),max(min(?,?),max(?,?)))

output:

2

result:

ok single line: '2'

Test #38:

score: 13
Accepted
time: 1ms
memory: 5800kb

input:

min(max(min(max(?,?),max(?,?)),min(max(min(?,?),min(max(?,?),max(?,?))),max(?,?))),max(min(?,?),min(?,?)))

output:

12

result:

ok single line: '12'

Test #39:

score: 13
Accepted
time: 1ms
memory: 5524kb

input:

max(min(max(?,?),max(min(?,?),max(max(?,?),min(?,max(?,max(?,?)))))),min(max(max(?,?),?),max(?,max(?,?))))

output:

11

result:

ok single line: '11'

Test #40:

score: 13
Accepted
time: 0ms
memory: 5596kb

input:

max(max(?,max(max(?,min(max(min(?,min(?,max(?,?))),min(?,?)),min(max(?,?),max(?,?)))),min(?,max(?,?)))),?)

output:

11

result:

ok single line: '11'

Test #41:

score: 13
Accepted
time: 0ms
memory: 5596kb

input:

min(max(max(min(min(?,?),?),min(min(min(?,min(?,?)),?),min(?,min(?,?)))),min(min(?,?),?)),min(min(?,?),?))

output:

11

result:

ok single line: '11'

Test #42:

score: 13
Accepted
time: 1ms
memory: 5672kb

input:

max(max(?,max(?,?)),max(max(max(max(max(min(?,max(?,?)),max(max(?,?),?)),?),max(?,?)),?),max(?,max(?,?))))

output:

3

result:

ok single line: '3'

Test #43:

score: 13
Accepted
time: 1ms
memory: 5576kb

input:

min(max(min(max(?,min(max(?,?),?)),max(min(max(min(?,max(?,?)),?),max(?,?)),?)),?),max(min(?,?),min(?,?)))

output:

13

result:

ok single line: '13'

Test #44:

score: 13
Accepted
time: 0ms
memory: 5648kb

input:

max(?,max(?,max(min(min(max(?,max(?,max(max(?,max(?,min(max(?,min(?,min(max(?,?),?))),?))),?))),?),?),?)))

output:

13

result:

ok single line: '13'

Test #45:

score: 13
Accepted
time: 0ms
memory: 5524kb

input:

max(min(max(max(min(min(?,min(min(min(?,min(?,max(?,min(max(?,min(max(?,?),?)),?)))),?),?)),?),?),?),?),?)

output:

15

result:

ok single line: '15'

Test #46:

score: 13
Accepted
time: 0ms
memory: 5856kb

input:

min(max(min(?,min(?,min(min(min(?,min(min(?,min(min(min(?,min(min(min(?,?),?),?)),?),?)),?)),?),?))),?),?)

output:

15

result:

ok single line: '15'

Test #47:

score: 13
Accepted
time: 0ms
memory: 5832kb

input:

max(max(?,max(max(max(max(?,max(?,max(?,max(max(min(max(?,max(?,max(?,max(?,?)))),?),?),?)))),?),?),?)),?)

output:

6

result:

ok single line: '6'

Test #48:

score: 13
Accepted
time: 0ms
memory: 5572kb

input:

max(min(?,max(?,min(?,max(?,min(?,max(?,min(max(?,min(max(?,min(max(?,min(max(?,?),?)),?)),?)),?))))))),?)

output:

15

result:

ok single line: '15'

Test #49:

score: 13
Accepted
time: 1ms
memory: 5580kb

input:

min(min(min(?,min(?,?)),?),min(min(?,?),min(min(?,min(?,?)),min(min(min(min(?,?),?),min(min(?,?),?)),?))))

output:

1

result:

ok single line: '1'

Test #50:

score: 13
Accepted
time: 0ms
memory: 5644kb

input:

max(?,max(max(max(?,?),max(max(?,max(?,max(?,?))),?)),max(?,max(max(max(?,?),max(?,max(max(?,?),?))),?))))

output:

1

result:

ok single line: '1'

Test #51:

score: 13
Accepted
time: 1ms
memory: 5576kb

input:

max(max(min(?,?),max(?,max(min(max(?,?),min(?,?)),min(?,?)))),max(max(max(min(?,?),?),max(?,?)),min(?,?)))

output:

8

result:

ok single line: '8'

Test #52:

score: 13
Accepted
time: 1ms
memory: 5580kb

input:

max(min(max(?,min(max(?,?),?)),max(min(max(?,?),min(?,?)),?)),min(min(?,?),min(min(min(min(?,?),?),?),?)))

output:

13

result:

ok single line: '13'

Test #53:

score: 13
Accepted
time: 1ms
memory: 5856kb

input:

max(min(max(max(?,?),min(?,?)),min(max(?,?),max(?,?))),min(max(max(?,?),min(?,?)),min(max(?,?),min(?,?))))

output:

12

result:

ok single line: '12'

Test #54:

score: 13
Accepted
time: 1ms
memory: 5856kb

input:

min(min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))),min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))))

output:

1

result:

ok single line: '1'

Test #55:

score: 13
Accepted
time: 1ms
memory: 5528kb

input:

min(max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))),max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))))

output:

10

result:

ok single line: '10'

Test #56:

score: 13
Accepted
time: 1ms
memory: 5796kb

input:

max(?,?)

output:

1

result:

ok single line: '1'

Subtask #3:

score: 13
Accepted

Test #57:

score: 13
Accepted
time: 35ms
memory: 24184kb

input:

min(?,min(?,min(min(min(min(?,min(min(?,min(?,min(?,min(min(?,min(?,min(min(?,min(min(?,min(?,min(?,min(min(?,min(min(?,min(min(?,min(?,min(?,min(min(?,min(min(?,min(min(min(min(?,min(min(min(min(min(?,min(min(?,min(min(?,min(?,min(?,min(?,min(min(?,min(?,min(?,min(?,min(min(?,min(?,min(?,min(min(mi...

output:

1

result:

ok single line: '1'

Test #58:

score: 13
Accepted
time: 27ms
memory: 23840kb

input:

max(max(max(max(max(max(max(?,max(max(max(?,max(?,max(max(max(max(max(?,max(?,max(max(?,max(max(?,max(?,max(max(max(max(max(max(max(max(max(max(?,max(?,max(?,max(?,max(max(?,max(max(max(?,max(?,max(?,max(max(max(max(max(max(max(max(?,max(?,max(max(max(?,max(?,max(?,max(?,max(?,max(?,max(max(max(?,ma...

output:

1

result:

ok single line: '1'

Test #59:

score: 13
Accepted
time: 36ms
memory: 23892kb

input:

max(?,max(min(max(max(max(max(max(min(?,min(?,min(?,max(?,max(?,min(max(max(?,max(max(max(?,max(?,max(min(max(?,min(max(max(?,max(max(?,max(?,max(min(?,max(min(?,min(?,max(?,min(min(?,max(max(min(?,min(max(max(min(min(?,min(?,max(?,min(?,min(min(max(min(?,min(min(?,max(?,min(?,max(?,max(?,min(min(ma...

output:

999998

result:

ok single line: '999998'

Test #60:

score: 13
Accepted
time: 37ms
memory: 25076kb

input:

min(min(min(?,max(min(min(?,max(?,min(?,max(?,max(?,min(max(max(max(min(?,max(max(min(?,max(?,max(?,max(max(?,max(min(?,max(?,min(max(min(?,max(min(min(?,min(?,max(?,min(?,max(max(max(?,min(?,max(?,max(?,min(?,min(?,max(max(max(?,min(?,min(?,min(max(?,max(?,min(min(?,min(max(max(?,min(min(?,min(min(...

output:

999997

result:

ok single line: '999997'

Test #61:

score: 13
Accepted
time: 30ms
memory: 24080kb

input:

max(min(min(?,min(min(max(?,min(?,max(min(min(?,max(min(?,min(?,min(min(?,min(min(min(min(?,min(min(min(min(min(min(min(min(min(min(?,min(min(?,min(?,min(max(min(?,min(?,min(?,min(?,min(?,min(?,min(min(min(min(?,min(min(min(?,min(?,max(min(?,min(?,min(min(max(?,max(min(?,min(?,min(min(max(min(?,min(...

output:

999999

result:

ok single line: '999999'

Test #62:

score: 13
Accepted
time: 37ms
memory: 24788kb

input:

min(min(max(max(?,min(min(max(?,min(min(min(?,min(?,min(min(min(min(min(min(min(?,min(min(?,max(?,min(min(?,min(?,min(min(?,min(min(min(?,min(?,max(?,min(min(?,min(?,min(min(min(?,min(?,max(?,min(min(?,min(min(?,max(?,min(?,min(?,min(min(max(?,min(max(max(?,min(min(min(?,min(min(?,min(min(min(max(mi...

output:

999998

result:

ok single line: '999998'

Test #63:

score: 13
Accepted
time: 32ms
memory: 24796kb

input:

max(max(max(?,max(max(?,max(max(max(max(?,max(?,max(?,max(?,max(?,max(?,max(max(?,max(?,max(?,max(?,max(?,max(max(max(max(max(?,max(?,max(max(?,max(?,max(max(max(max(?,max(max(?,min(?,max(?,max(max(max(max(max(?,min(max(min(?,max(?,max(?,max(?,max(?,max(max(max(?,max(?,max(?,max(?,min(?,max(max(?,mi...

output:

999965

result:

ok single line: '999965'

Test #64:

score: 13
Accepted
time: 24ms
memory: 24884kb

input:

max(max(?,max(?,max(max(?,max(?,max(max(?,max(min(max(?,max(?,min(?,max(?,max(max(?,max(max(max(max(max(?,max(?,max(?,max(max(?,max(max(max(max(max(min(min(?,max(max(?,min(?,max(max(?,max(max(?,max(?,min(max(?,max(max(min(max(?,max(?,max(max(max(max(max(max(max(max(max(?,min(max(?,max(?,max(min(max(...

output:

999991

result:

ok single line: '999991'

Test #65:

score: 13
Accepted
time: 31ms
memory: 24524kb

input:

min(?,max(?,min(?,max(min(?,max(?,min(max(min(?,max(min(max(?,min(?,max(min(?,max(min(?,max(?,min(max(min(?,max(?,min(max(min(?,max(min(?,max(?,min(max(?,min(max(?,min(?,max(min(?,max(?,min(?,max(min(max(?,min(?,max(min(max(?,min(max(?,min(?,max(?,min(?,max(min(max(?,min(?,max(?,min(max(?,min(?,max(...

output:

999999

result:

ok single line: '999999'

Test #66:

score: 13
Accepted
time: 28ms
memory: 24876kb

input:

min(max(min(?,max(?,min(max(?,min(max(min(?,max(min(max(min(max(?,min(?,max(?,min(max(?,min(?,max(?,min(max(min(max(?,min(?,max(min(max(min(?,max(min(max(min(?,max(min(?,max(min(?,max(min(max(?,min(max(?,min(max(min(?,max(?,min(max(min(?,max(min(?,max(min(max(min(?,max(?,min(?,max(?,min(max(?,min(ma...

output:

999999

result:

ok single line: '999999'

Test #67:

score: 13
Accepted
time: 35ms
memory: 24460kb

input:

max(min(?,max(min(max(min(max(min(max(?,min(max(?,min(?,max(min(max(min(?,max(?,min(?,max(min(max(min(?,max(?,min(?,max(?,min(?,max(?,min(max(?,min(?,max(min(?,max(min(?,max(?,min(max(?,min(max(min(max(?,min(?,max(?,min(max(min(max(min(max(?,min(max(?,min(?,max(min(?,max(?,min(max(min(?,max(?,min(?,...

output:

999999

result:

ok single line: '999999'

Test #68:

score: 13
Accepted
time: 21ms
memory: 24204kb

input:

min(max(?,min(max(min(?,max(?,min(?,max(min(max(min(max(?,min(max(?,min(?,max(min(max(?,min(max(?,min(max(?,min(?,max(min(?,max(min(?,max(?,min(max(min(max(?,min(max(min(?,max(?,min(max(min(?,max(min(max(?,min(max(min(?,max(min(max(?,min(?,max(?,min(?,max(?,min(max(?,min(?,max(?,min(?,max(min(max(mi...

output:

999999

result:

ok single line: '999999'

Test #69:

score: 13
Accepted
time: 1ms
memory: 5580kb

input:

max(?,?)

output:

1

result:

ok single line: '1'

Subtask #4:

score: 30
Accepted

Dependency #2:

100%
Accepted

Test #70:

score: 30
Accepted
time: 1ms
memory: 5840kb

input:

max(min(min(min(min(min(min(min(min(?,max(?,?)),max(max(min(?,?),min(?,?)),max(?,?))),max(min(?,min(?,?)),max(?,min(max(?,min(?,?)),?)))),min(max(max(min(min(?,?),?),min(?,?)),min(?,min(?,?))),min(max(?,?),min(min(?,max(?,?)),max(?,?))))),min(max(max(max(?,max(max(?,?),?)),min(min(?,?),min(?,?))),ma...

output:

982

result:

ok single line: '982'

Test #71:

score: 30
Accepted
time: 1ms
memory: 5604kb

input:

min(min(min(min(max(min(max(min(min(min(?,?),?),min(max(?,min(?,?)),min(?,max(?,?)))),max(min(min(?,?),?),min(min(?,?),max(?,max(?,?))))),min(min(min(?,min(?,?)),max(min(?,max(?,?)),?)),min(max(?,max(min(?,?),?)),max(max(min(?,?),?),?)))),max(min(max(max(max(?,?),?),max(max(?,?),?)),min(max(?,min(?,...

output:

982

result:

ok single line: '982'

Test #72:

score: 30
Accepted
time: 1ms
memory: 5812kb

input:

min(min(min(min(min(min(min(min(min(?,min(?,?)),min(max(?,?),min(?,min(?,?)))),min(min(min(min(?,?),?),?),min(min(?,?),min(?,?)))),min(min(min(?,?),min(?,min(min(?,?),?))),min(min(min(min(?,?),?),?),min(min(?,min(?,?)),?)))),min(min(min(min(?,max(?,?)),max(?,min(?,min(min(?,?),?)))),min(min(min(?,?)...

output:

399

result:

ok single line: '399'

Test #73:

score: 30
Accepted
time: 1ms
memory: 5808kb

input:

max(max(max(max(max(max(max(max(max(max(?,?),max(max(?,?),?)),max(max(?,?),?)),max(max(?,max(?,?)),max(?,max(max(?,?),?)))),max(max(max(?,max(max(min(?,?),?),?)),max(?,max(?,?))),max(max(max(?,?),max(max(?,?),?)),max(max(?,max(?,?)),?)))),max(max(max(max(?,max(?,?)),max(?,max(?,max(?,?)))),min(max(m...

output:

420

result:

ok single line: '420'

Test #74:

score: 30
Accepted
time: 1ms
memory: 5600kb

input:

max(min(max(min(max(min(max(min(max(min(?,?),min(?,?)),max(min(?,?),?)),min(max(min(?,?),?),max(min(?,max(min(?,?),?)),min(?,?)))),max(min(max(min(max(?,?),?),?),max(min(max(?,?),?),?)),min(max(?,min(?,?)),max(min(?,max(?,?)),?)))),min(max(min(max(min(max(?,?),?),?),max(?,min(max(?,?),?))),min(max(?...

output:

954

result:

ok single line: '954'

Test #75:

score: 30
Accepted
time: 1ms
memory: 5604kb

input:

max(max(max(max(max(min(max(?,max(?,min(?,?))),?),min(min(?,max(max(?,?),?)),max(?,max(min(max(min(min(?,?),?),?),?),max(max(max(min(?,?),?),?),min(min(?,max(min(?,?),max(?,?))),min(min(?,max(min(max(?,?),min(?,min(max(max(max(?,min(?,?)),min(?,?)),max(max(?,max(max(min(?,min(?,min(?,?))),max(min(mi...

output:

993

result:

ok single line: '993'

Test #76:

score: 30
Accepted
time: 1ms
memory: 5812kb

input:

min(min(?,?),min(min(max(min(?,?),min(?,?)),min(min(?,max(max(max(?,?),?),max(max(min(?,?),min(max(?,max(?,?)),max(max(?,max(max(max(?,max(max(max(min(min(?,?),min(?,max(?,?))),min(max(min(max(?,?),?),?),max(min(max(min(?,?),?),max(?,min(min(min(?,?),min(?,?)),min(max(max(max(?,?),min(?,?)),?),max(m...

output:

993

result:

ok single line: '993'

Test #77:

score: 30
Accepted
time: 1ms
memory: 5676kb

input:

min(min(min(min(?,?),min(min(min(?,min(?,?)),?),max(min(max(min(?,?),?),min(?,?)),min(min(?,?),min(min(min(min(min(?,?),?),min(min(min(min(?,min(?,?)),min(min(min(?,?),min(max(?,?),?)),min(min(max(min(?,?),?),min(min(min(min(min(min(min(min(?,?),?),?),min(min(?,min(max(min(min(min(?,min(min(?,?),min...

output:

987

result:

ok single line: '987'

Test #78:

score: 30
Accepted
time: 1ms
memory: 5848kb

input:

max(max(max(max(max(max(max(?,?),max(?,?)),max(max(max(?,?),?),max(max(max(min(?,?),?),?),max(max(max(max(?,?),?),max(max(max(max(max(max(max(?,max(?,?)),max(max(max(max(?,max(?,?)),max(max(?,max(max(?,max(?,?)),max(max(max(min(max(min(max(?,?),?),?),?),max(max(max(?,max(max(max(min(min(?,max(max(ma...

output:

912

result:

ok single line: '912'

Test #79:

score: 30
Accepted
time: 1ms
memory: 5652kb

input:

max(?,min(max(min(?,?),?),max(min(max(min(?,max(?,?)),?),?),min(max(?,?),max(min(max(?,min(max(?,?),?)),?),min(max(min(max(min(max(min(max(min(?,?),?),max(?,min(max(?,min(max(?,?),max(?,?))),max(min(?,max(?,min(?,max(?,?)))),min(max(min(?,?),min(?,?)),max(min(?,max(?,min(?,?))),min(max(min(?,max(?,?...

output:

998

result:

ok single line: '998'

Test #80:

score: 30
Accepted
time: 1ms
memory: 5680kb

input:

max(min(min(min(max(?,min(min(?,?),max(?,?))),min(min(?,?),?)),max(?,max(max(min(max(?,?),?),min(max(?,?),?)),min(?,min(max(?,?),max(max(?,?),min(?,?))))))),max(?,max(min(min(max(max(max(?,min(min(?,min(?,?)),?)),max(max(max(min(?,min(?,?)),max(?,?)),?),max(max(max(?,?),?),max(?,?)))),min(min(max(?,...

output:

991

result:

ok single line: '991'

Test #81:

score: 30
Accepted
time: 1ms
memory: 5612kb

input:

max(max(min(max(max(max(max(max(?,?),?),max(?,max(?,max(?,?)))),max(max(?,max(?,?)),?)),min(max(min(min(?,?),?),max(max(max(max(max(?,max(?,?)),?),max(?,?)),max(min(?,max(?,?)),?)),max(max(max(?,?),?),max(max(?,min(?,?)),max(?,max(?,?)))))),?)),max(max(min(min(max(min(max(min(min(?,max(max(?,?),min(...

output:

984

result:

ok single line: '984'

Test #82:

score: 30
Accepted
time: 1ms
memory: 5656kb

input:

min(max(min(min(min(min(min(min(?,?),min(?,min(?,?))),min(?,min(max(?,?),?))),min(min(min(min(min(?,min(?,min(?,?))),min(min(min(min(?,?),min(?,?)),min(?,min(?,?))),min(max(min(min(?,?),min(?,?)),min(min(min(?,?),?),?)),max(min(min(min(min(?,min(?,?)),max(min(min(?,?),max(?,?)),min(?,?))),min(?,?)),...

output:

884

result:

ok single line: '884'

Test #83:

score: 30
Accepted
time: 1ms
memory: 5544kb

input:

max(min(max(max(max(max(max(max(?,?),?),?),max(max(?,max(?,?)),?)),max(max(?,max(min(max(?,max(max(?,?),?)),max(max(max(max(?,max(?,max(?,max(?,?)))),max(max(?,max(?,?)),max(?,max(max(max(?,?),max(?,max(?,?))),max(?,max(?,?)))))),min(max(?,?),max(?,?))),max(min(max(max(max(?,?),?),max(min(?,?),max(?...

output:

548

result:

ok single line: '548'

Test #84:

score: 30
Accepted
time: 1ms
memory: 5592kb

input:

min(max(min(max(min(max(min(max(?,min(max(?,?),?)),max(min(max(min(max(min(?,max(min(?,max(?,?)),?)),min(?,max(?,min(?,?)))),max(min(?,max(min(?,?),min(max(?,?),max(?,min(max(min(?,max(?,?)),min(?,?)),?))))),min(?,?))),min(?,max(?,?))),max(min(?,?),?)),min(max(min(max(?,?),max(?,min(?,?))),?),?))),m...

output:

987

result:

ok single line: '987'

Test #85:

score: 30
Accepted
time: 1ms
memory: 5896kb

input:

max(?,max(?,min(?,max(max(?,max(?,max(?,min(?,max(max(min(?,min(min(?,max(min(?,max(?,max(?,max(?,min(?,max(?,max(?,min(?,min(min(max(?,max(min(?,min(max(?,min(max(?,min(?,max(max(?,max(max(max(?,max(?,min(max(?,max(?,max(min(min(min(max(max(?,max(max(max(?,max(?,max(min(max(min(?,max(max(?,max(max(...

output:

998

result:

ok single line: '998'

Test #86:

score: 30
Accepted
time: 1ms
memory: 5888kb

input:

max(min(?,min(?,min(min(?,min(?,min(max(?,min(?,min(?,max(min(?,min(min(?,max(max(min(?,min(?,min(?,max(min(max(max(max(?,max(?,min(?,max(min(?,min(max(max(?,min(?,min(?,min(?,min(?,min(?,max(?,max(?,max(?,max(?,max(?,max(max(?,min(?,min(max(?,max(min(min(max(min(?,min(max(min(?,max(min(min(max(?,mi...

output:

999

result:

ok single line: '999'

Test #87:

score: 30
Accepted
time: 1ms
memory: 5684kb

input:

min(?,min(min(min(?,min(min(min(min(min(min(?,min(?,min(?,min(?,min(?,min(?,min(?,min(min(?,min(?,min(?,min(min(min(min(min(min(max(?,max(?,min(min(?,min(?,min(min(?,min(min(min(?,min(min(?,min(?,min(min(min(?,min(?,min(min(min(?,min(?,min(?,min(min(min(min(?,max(?,min(min(min(max(?,min(min(?,min(?,...

output:

974

result:

ok single line: '974'

Test #88:

score: 30
Accepted
time: 1ms
memory: 5580kb

input:

min(max(max(max(max(min(?,max(max(?,max(?,max(?,max(max(?,max(max(?,max(?,max(?,max(?,max(?,max(?,max(min(?,max(min(max(?,max(max(min(?,max(max(max(max(?,max(?,max(max(?,max(?,max(max(?,max(max(max(?,max(max(max(?,max(max(max(?,max(?,max(?,max(max(?,max(max(?,max(max(?,max(max(?,max(max(?,max(max(ma...

output:

999

result:

ok single line: '999'

Test #89:

score: 30
Accepted
time: 1ms
memory: 5812kb

input:

min(?,max(min(?,max(min(?,max(?,min(max(?,min(?,max(min(max(min(max(min(max(?,min(max(?,min(max(min(?,max(?,min(?,max(min(max(min(?,max(?,min(?,max(?,min(max(?,min(max(?,min(?,max(?,min(max(?,min(?,max(min(?,max(?,min(?,max(min(max(min(max(?,min(?,max(?,min(max(min(max(min(max(min(?,max(?,min(?,max(...

output:

999

result:

ok single line: '999'

Test #90:

score: 30
Accepted
time: 1ms
memory: 5544kb

input:

min(min(min(min(min(min(min(?,?),min(?,min(?,?))),min(min(?,min(?,?)),min(min(?,?),min(min(?,?),?)))),min(min(min(min(?,?),?),min(?,min(?,?))),min(min(min(?,min(min(?,?),?)),min(min(min(min(?,?),min(?,min(min(?,?),min(min(?,?),?)))),min(?,?)),min(?,min(?,?)))),min(?,min(?,?))))),min(min(min(min(min(...

output:

1

result:

ok single line: '1'

Test #91:

score: 30
Accepted
time: 1ms
memory: 5604kb

input:

max(max(max(max(max(max(?,?),?),max(max(?,?),max(max(max(?,?),?),?))),max(?,max(?,max(?,max(max(?,?),?))))),max(max(max(max(?,max(?,?)),max(max(max(max(max(?,?),?),max(?,max(?,max(?,?)))),max(?,?)),max(?,max(?,?)))),max(max(max(max(?,max(max(?,?),max(?,?))),max(max(?,max(max(?,?),?)),?)),max(max(max...

output:

1

result:

ok single line: '1'

Test #92:

score: 30
Accepted
time: 1ms
memory: 5672kb

input:

max(max(?,min(?,max(max(max(?,min(?,min(?,max(?,?)))),min(min(?,min(?,min(?,?))),min(min(?,?),?))),?))),max(min(max(max(min(min(?,?),max(?,?)),max(?,max(min(?,min(?,?)),max(?,min(min(?,max(?,?)),?))))),min(max(min(max(?,?),?),?),min(?,max(max(min(?,max(min(?,?),max(max(?,?),?))),max(min(?,min(?,?)),...

output:

992

result:

ok single line: '992'

Test #93:

score: 30
Accepted
time: 1ms
memory: 5600kb

input:

min(min(max(max(min(min(min(max(?,?),max(?,?)),max(?,?)),min(min(max(max(min(?,?),?),min(?,?)),max(?,min(?,?))),min(max(?,max(?,?)),min(?,?)))),min(max(min(min(?,?),max(max(min(max(?,?),min(min(max(?,max(?,?)),?),min(min(min(min(?,?),min(?,?)),?),min(max(?,?),max(?,max(max(min(max(?,?),?),min(?,?)),...

output:

992

result:

ok single line: '992'

Test #94:

score: 30
Accepted
time: 1ms
memory: 5656kb

input:

max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,...

output:

999

result:

ok single line: '999'

Test #95:

score: 30
Accepted
time: 0ms
memory: 5592kb

input:

max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,...

output:

999

result:

ok single line: '999'

Test #96:

score: 30
Accepted
time: 1ms
memory: 5600kb

input:

max(min(min(max(min(min(max(max(min(?,?),min(?,?)),min(min(?,?),max(?,?))),max(min(max(?,?),max(?,?)),min(max(?,?),min(?,?)))),max(min(max(min(?,?),max(?,?)),max(min(?,?),min(?,?))),max(max(max(?,?),min(?,?)),max(max(?,?),max(?,?))))),min(max(max(max(max(?,?),min(?,?)),min(min(?,?),min(?,?))),min(ma...

output:

497

result:

ok single line: '497'

Test #97:

score: 30
Accepted
time: 0ms
memory: 5580kb

input:

min(min(min(min(min(min(min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))),min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?)))),min(min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))),min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))))),min(min(min(min(max(?,?),min(?,?)),min(max(?,?),min(?,?))),min(ma...

output:

133

result:

ok single line: '133'

Test #98:

score: 30
Accepted
time: 1ms
memory: 5868kb

input:

max(min(max(min(max(min(max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))),max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?)))),min(max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))),max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))))),max(min(max(min(max(?,?),max(?,?)),min(max(?,?),max(?,?))),max(mi...

output:

466

result:

ok single line: '466'

Test #99:

score: 30
Accepted
time: 1ms
memory: 5640kb

input:

max(?,?)

output:

1

result:

ok single line: '1'

Subtask #5:

score: 34
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Test #100:

score: 34
Accepted
time: 36ms
memory: 18996kb

input:

min(max(max(min(min(min(max(max(min(min(max(min(min(min(max(max(min(max(max(min(?,?),?),min(?,min(min(?,?),?))),max(max(max(?,?),?),max(min(?,?),?))),max(max(max(max(?,?),min(?,?)),max(?,min(max(?,?),?))),max(max(max(?,min(?,?)),min(?,?)),max(?,min(?,?))))),min(max(min(min(max(?,max(?,?)),?),min(?,?...

output:

999923

result:

ok single line: '999923'

Test #101:

score: 34
Accepted
time: 32ms
memory: 17768kb

input:

max(max(min(min(min(min(max(max(min(min(max(min(max(min(min(max(max(max(min(?,?),max(max(?,?),max(?,?))),max(min(max(?,?),?),max(?,max(max(?,?),min(?,?))))),max(max(max(max(?,?),?),min(min(?,?),min(min(?,?),?))),min(min(max(?,?),max(?,?)),min(max(?,?),min(?,?))))),min(max(max(min(min(?,max(?,?)),?),...

output:

999801

result:

ok single line: '999801'

Test #102:

score: 34
Accepted
time: 33ms
memory: 19248kb

input:

max(min(min(min(min(min(min(min(min(min(min(min(min(min(min(min(min(max(min(min(?,?),?),min(min(?,min(?,min(?,?))),min(?,?))),min(min(?,min(?,?)),min(min(?,?),min(?,?)))),min(min(min(?,?),min(min(?,?),min(?,?))),min(min(?,min(min(?,?),min(?,?))),max(min(min(?,?),?),?)))),min(min(min(min(min(?,?),min...

output:

848294

result:

ok single line: '848294'

Test #103:

score: 34
Accepted
time: 32ms
memory: 18344kb

input:

max(max(max(max(max(max(max(max(max(max(max(min(min(max(max(max(max(max(max(?,max(?,max(?,max(?,?)))),max(max(?,?),?)),max(max(max(?,?),max(?,?)),max(?,?))),max(max(max(max(?,?),?),min(?,max(?,?))),max(max(max(?,?),max(?,?)),max(max(max(?,?),?),max(?,?))))),max(max(min(min(max(?,?),max(?,?)),min(?,m...

output:

717575

result:

ok single line: '717575'

Test #104:

score: 34
Accepted
time: 26ms
memory: 18908kb

input:

max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(?,?),max(?,min(max(?,?),?))),min(max(?,min(?,?)),max(min(max(?,?),?),min(?,?)))),max(min(max(?,min(?,?)),max(min(?,max(?,?)),min(?,?))),min(max(?,min(max(?,?),max(?,?))),max(min(?,?),min(?,?))))),min(max(min(max(?,min(?,?)),...

output:

998497

result:

ok single line: '998497'

Test #105:

score: 34
Accepted
time: 33ms
memory: 19844kb

input:

min(?,min(?,min(min(max(max(min(?,?),max(?,?)),max(max(?,max(?,max(?,?))),min(min(?,max(min(?,?),min(?,?))),min(max(max(min(min(min(?,?),?),?),min(max(?,?),max(min(?,max(max(?,?),min(?,max(min(?,min(min(min(min(?,?),?),min(?,?)),max(min(max(min(min(?,max(?,max(?,?))),min(max(min(?,min(?,?)),max(max(...

output:

999993

result:

ok single line: '999993'

Test #106:

score: 34
Accepted
time: 34ms
memory: 19688kb

input:

max(min(?,max(?,max(?,?))),min(?,max(max(max(min(?,?),?),min(?,?)),max(max(max(?,?),max(max(max(?,?),min(min(min(min(min(?,?),?),min(?,?)),max(max(max(?,?),?),max(min(min(?,?),min(max(?,?),?)),max(min(min(min(min(?,min(?,?)),?),min(max(?,?),max(max(max(?,min(?,max(?,?))),max(min(?,?),max(?,max(max(m...

output:

999998

result:

ok single line: '999998'

Test #107:

score: 34
Accepted
time: 31ms
memory: 20668kb

input:

min(?,max(?,min(min(min(min(max(?,min(max(?,min(min(min(?,min(?,?)),?),min(min(?,min(min(min(min(?,?),max(?,?)),min(min(min(?,min(?,min(?,min(max(min(?,?),min(?,min(?,?))),max(min(?,min(min(?,min(?,min(min(max(?,?),min(min(min(min(min(?,?),min(?,?)),min(min(?,min(min(min(min(max(?,?),?),?),min(min(m...

output:

999999

result:

ok single line: '999999'

Test #108:

score: 34
Accepted
time: 25ms
memory: 19832kb

input:

max(max(max(?,?),max(?,max(?,max(max(max(max(max(max(max(?,?),?),?),max(max(max(max(max(max(?,max(?,?)),max(?,?)),max(max(min(max(max(?,max(?,?)),?),max(?,max(max(min(max(?,?),?),max(?,?)),max(max(?,max(max(max(?,?),?),?)),max(max(max(max(max(?,max(?,?)),?),max(max(max(max(?,?),max(max(min(max(?,?),...

output:

999957

result:

ok single line: '999957'

Test #109:

score: 34
Accepted
time: 28ms
memory: 20496kb

input:

max(min(?,?),min(max(?,min(?,?)),max(min(?,?),min(max(min(max(min(?,?),?),max(min(max(?,?),?),min(max(min(max(min(max(?,?),?),min(?,?)),max(min(?,?),min(max(min(max(?,min(?,?)),max(?,min(max(min(max(min(?,max(?,?)),?),?),min(max(min(max(min(max(min(?,?),min(?,max(?,?))),max(min(max(?,?),max(?,min(ma...

output:

999997

result:

ok single line: '999997'

Test #110:

score: 34
Accepted
time: 35ms
memory: 17868kb

input:

min(max(max(min(max(min(min(max(max(min(max(min(max(?,max(?,?)),max(max(min(min(min(max(?,?),max(?,max(?,?))),max(?,?)),max(max(min(max(?,?),?),min(?,?)),?)),max(max(max(?,?),max(max(min(?,?),max(max(?,?),max(?,?))),min(?,?))),min(min(?,min(min(?,?),?)),?))),max(max(max(min(?,?),?),min(?,max(?,?))),...

output:

999968

result:

ok single line: '999968'

Test #111:

score: 34
Accepted
time: 37ms
memory: 18752kb

input:

max(max(max(max(min(min(min(max(max(max(min(max(min(max(?,?),max(max(?,?),min(?,?))),?),min(max(min(max(min(max(min(max(min(?,min(?,?)),?),max(?,max(?,max(?,?)))),min(max(?,?),?)),max(?,?)),min(?,max(?,?))),min(max(max(min(max(min(min(min(?,min(?,?)),min(?,max(?,?))),?),max(max(max(?,?),?),min(?,?))...

output:

999907

result:

ok single line: '999907'

Test #112:

score: 34
Accepted
time: 27ms
memory: 18120kb

input:

max(min(min(min(min(max(min(min(min(min(min(min(min(min(?,min(max(?,?),?)),min(?,min(?,?))),?),min(?,?)),min(min(min(?,min(min(?,?),min(min(min(?,?),min(?,?)),?))),?),min(min(?,?),min(?,?)))),min(min(min(min(min(min(min(?,min(min(min(?,?),min(?,?)),?)),min(?,?)),max(?,?)),max(min(?,min(?,min(min(?,?...

output:

997477

result:

ok single line: '997477'

Test #113:

score: 34
Accepted
time: 25ms
memory: 18036kb

input:

max(max(max(max(max(max(max(max(max(max(max(max(max(max(max(?,?),max(max(max(max(max(max(max(max(max(?,?),max(max(min(?,?),?),max(max(max(?,?),?),?))),max(min(?,?),max(?,max(?,?)))),max(min(?,min(max(?,max(?,max(max(?,?),max(max(?,?),?)))),max(?,max(?,?)))),max(max(max(max(?,?),max(max(?,?),max(max(...

output:

892729

result:

ok single line: '892729'

Test #114:

score: 34
Accepted
time: 26ms
memory: 18628kb

input:

max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(?,?),max(?,?)),min(max(?,min(?,max(?,?))),?)),max(min(max(?,min(max(?,?),max(?,?))),?),?)),min(max(min(max(?,?),?),min(?,max(?,min(?,?)))),max(min(max(min(?,?),min(max(?,?),?)),max(?,?)),?))),max(min(max(min(?,max(min(?,?),min(?,max...

output:

999903

result:

ok single line: '999903'

Test #115:

score: 34
Accepted
time: 33ms
memory: 24972kb

input:

max(max(max(?,max(?,min(max(min(min(min(min(?,max(max(min(?,min(?,max(?,min(min(max(?,max(min(?,max(max(?,min(?,min(?,min(min(min(min(?,max(?,min(min(max(min(?,max(?,max(?,min(min(?,max(?,max(?,min(max(?,min(min(?,max(max(max(max(?,max(?,max(?,min(?,max(?,min(min(min(?,max(max(?,max(max(?,max(?,max(...

output:

999996

result:

ok single line: '999996'

Test #116:

score: 34
Accepted
time: 36ms
memory: 24464kb

input:

max(max(?,min(min(min(?,max(max(max(?,max(?,max(max(?,max(max(min(max(max(?,min(max(max(?,max(max(?,min(?,min(?,max(?,min(?,min(?,min(?,min(?,max(min(?,min(?,max(?,min(max(?,min(min(?,min(min(?,min(max(max(?,max(?,max(?,min(min(?,max(max(?,min(min(min(?,max(?,max(?,max(min(?,max(min(?,min(?,min(max(...

output:

999998

result:

ok single line: '999998'

Test #117:

score: 34
Accepted
time: 32ms
memory: 24156kb

input:

min(min(min(?,min(?,min(min(min(?,min(min(min(min(?,min(?,max(?,min(min(min(min(?,min(min(min(min(?,min(?,min(?,min(min(min(?,min(?,min(?,min(?,min(max(?,min(?,min(?,max(min(min(min(min(min(min(?,min(min(min(?,min(?,max(?,min(?,min(?,min(min(?,min(min(?,min(?,max(?,min(min(min(?,min(?,min(?,min(?,ma...

output:

999988

result:

ok single line: '999988'

Test #118:

score: 34
Accepted
time: 24ms
memory: 25056kb

input:

max(max(?,max(max(max(?,max(?,max(?,max(?,max(max(?,max(?,max(max(?,max(max(max(?,max(?,max(max(max(?,max(?,max(min(?,max(max(?,max(?,max(?,max(?,max(min(?,max(?,max(?,max(?,max(max(?,max(?,max(?,max(?,max(max(max(min(max(max(?,max(?,min(?,max(?,max(?,max(max(?,max(?,max(?,max(max(max(max(max(max(ma...

output:

999978

result:

ok single line: '999978'

Test #119:

score: 34
Accepted
time: 20ms
memory: 25212kb

input:

min(?,max(min(max(min(max(min(max(min(max(?,min(max(min(max(?,min(max(min(?,max(min(?,max(?,min(?,max(min(max(?,min(max(?,min(?,max(?,min(?,max(min(?,max(?,min(?,max(?,min(?,max(?,min(max(min(max(min(max(min(max(min(max(?,min(max(?,min(?,max(?,min(max(min(max(min(max(min(max(?,min(?,max(?,min(?,max(...

output:

999999

result:

ok single line: '999999'

Test #120:

score: 34
Accepted
time: 30ms
memory: 17940kb

input:

min(min(min(min(min(min(min(min(min(min(min(min(min(min(min(min(?,min(?,min(min(?,min(?,?)),min(?,?)))),min(?,min(min(?,?),min(?,?)))),min(min(min(min(?,?),min(min(?,?),?)),?),min(?,?))),min(min(min(min(min(min(min(min(?,?),min(min(min(?,?),?),?)),min(?,?)),min(?,?)),min(?,min(min(?,?),min(?,?)))),m...

output:

1

result:

ok single line: '1'

Test #121:

score: 34
Accepted
time: 32ms
memory: 17896kb

input:

max(max(max(max(max(max(max(max(max(max(max(max(max(max(max(max(?,?),?),max(max(max(?,?),max(?,?)),?)),?),max(max(?,max(?,max(?,?))),max(?,max(?,max(?,?))))),max(max(max(?,max(max(?,?),max(max(max(?,?),?),max(?,max(max(?,?),?))))),max(?,max(?,?))),?)),max(max(max(max(max(max(max(max(max(?,?),?),?),m...

output:

1

result:

ok single line: '1'

Test #122:

score: 34
Accepted
time: 33ms
memory: 18888kb

input:

max(min(min(max(max(max(max(max(min(min(max(min(max(min(?,?),?),min(max(max(min(max(max(?,min(?,?)),min(min(min(?,min(?,?)),max(?,?)),min(?,min(max(max(?,?),min(?,?)),max(min(?,?),min(max(?,?),?)))))),min(min(min(min(?,?),min(min(max(max(?,?),max(min(max(?,?),?),max(min(max(?,max(?,?)),?),min(min(mi...

output:

999924

result:

ok single line: '999924'

Test #123:

score: 34
Accepted
time: 42ms
memory: 17776kb

input:

max(min(max(max(min(min(max(min(min(min(max(min(min(min(min(?,?),?),min(min(max(?,?),min(max(max(?,?),max(?,?)),min(?,?))),max(min(min(?,?),max(?,?)),max(?,max(?,max(?,max(?,?))))))),max(max(max(min(min(min(?,min(max(min(max(?,?),?),max(?,?)),min(max(?,?),?))),?),max(max(?,min(?,?)),min(?,?))),?),mi...

output:

999954

result:

ok single line: '999954'

Test #124:

score: 34
Accepted
time: 20ms
memory: 23060kb

input:

min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,...

output:

999999

result:

ok single line: '999999'

Test #125:

score: 34
Accepted
time: 15ms
memory: 22612kb

input:

max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,...

output:

999999

result:

ok single line: '999999'

Test #126:

score: 34
Accepted
time: 18ms
memory: 23004kb

input:

max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,...

output:

999999

result:

ok single line: '999999'

Test #127:

score: 34
Accepted
time: 22ms
memory: 22436kb

input:

min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,min(?,max(?,...

output:

999999

result:

ok single line: '999999'

Test #128:

score: 34
Accepted
time: 19ms
memory: 13908kb

input:

min(max(max(max(min(max(max(max(max(min(max(max(max(max(max(min(max(max(max(?,?),min(?,?)),min(max(?,?),min(?,?))),max(max(min(?,?),min(?,?)),min(min(?,?),min(?,?)))),max(min(min(min(?,?),min(?,?)),max(max(?,?),min(?,?))),min(max(min(?,?),max(?,?)),min(max(?,?),min(?,?))))),min(min(min(min(min(?,?),...

output:

524234

result:

ok single line: '524234'

Test #129:

score: 34
Accepted
time: 10ms
memory: 14080kb

input:

min(max(min(min(min(min(min(max(min(min(min(min(min(min(min(min(min(min(min(?,?),min(?,?)),max(min(?,?),min(?,?))),min(max(min(?,?),min(?,?)),min(min(?,?),min(?,?)))),min(min(min(min(?,?),min(?,?)),min(min(?,?),min(?,?))),min(min(min(?,?),min(?,?)),max(min(?,?),min(?,?))))),min(min(min(min(min(?,?),...

output:

385768

result:

ok single line: '385768'

Test #130:

score: 34
Accepted
time: 6ms
memory: 12928kb

input:

min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(max(min(?,?),min(?,?)),max(min(?,?),min(?,?))),min(max(min(?,?),min(?,?)),max(min(?,?),min(?,?)))),max(min(max(min(?,?),min(?,?)),max(min(?,?),min(?,?))),min(max(min(?,?),min(?,?)),max(min(?,?),min(?,?))))),min(max(min(max(min(?,?),...

output:

522754

result:

ok single line: '522754'

Test #131:

score: 34
Accepted
time: 1ms
memory: 5572kb

input:

max(?,?)

output:

1

result:

ok single line: '1'

Extra Test:

score: 0
Extra Test Passed