Language: C++


~/workspace/atcoder master
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
5 3
-30 -10 10 20 50
40

~/workspace/atcoder master 8s
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
3 2
10 20 30
20

~/workspace/atcoder master
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
1 1
0
0

~/workspace/atcoder master
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
8 5
-9 -7 -4 -3 1 2 3 4
10

~/workspace/atcoder master
❯ act abc145 c
Log in...
Compile...
Fetch testcases...

Sample Input 1 : WA  ans = 2.2761423749, wa = 0
Sample Input 2 : WA  ans = 91.9238815543, wa = 91.9239
Sample Input 3 : WA  ans = 7641.9817824387, wa = 0


~/workspace/atcoder master
❯ act abc145 c
Log in...
Compile...
Fetch testcases...

Sample Input 1 : WA  ans = 2.2761423749, wa = 2.27614
Sample Input 2 : WA  ans = 91.9238815543, wa = 91.9239
Sample Input 3 : WA  ans = 7641.9817824387, wa = 7641.98


~/workspace/atcoder master
❯ act abc145 c
Log in...
Compile...
Fetch testcases...

Sample Input 1 : AC
Sample Input 2 : AC
Sample Input 3 : AC

Submit...Complete!

~/workspace/atcoder master
❯ act abc148 f
Log in...
Compile...
Fetch testcases...

Sample Input 1 : AC
Sample Input 2 : AC
Sample Input 3 : AC
Sample Input 4 : AC

Submit...Complete!

~/workspace/atcoder master 6s
❯ act abc148 f
Log in...
Compile...
Fetch testcases...

Sample Input 1 : AC
Sample Input 2 : AC
Sample Input 3 : AC
Sample Input 4 : AC

Submit...Complete!

~/workspace/atcoder master 9s
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
5 4 2
1 7

~/workspace/atcoder master
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
5 4 2
5 3

~/workspace/atcoder master
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
3 3 3
1 3

~/workspace/atcoder master
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
314159265 358979323 84
448759046 224379523

~/workspace/atcoder master
❯ act abc066 b
Log in...
Compile...
Fetch testcases...

Sample Input 1 : WA  ans = 6, wa = 
Sample Input 2 : WA  ans = 2, wa = 
Sample Input 3 : WA  ans = 6, wa = 
Sample Input 4 : RE

terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 18446744073709551615) > this->size() (which is 18446744073709551614)



~/workspace/atcoder master
❯ act abc066 b
Log in...
Compile...
Fetch testcases...

Sample Input 1 : WA  ans = 6, wa = 
Sample Input 2 : WA  ans = 2, wa = 
Sample Input 3 : WA  ans = 6, wa = 
Sample Input 4 : RE

terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 18446744073709551615) > this->size() (which is 18446744073709551614)



~/workspace/atcoder master
❯ act abc066 b
Log in...
Compile...
Fetch testcases...

Sample Input 1 : WA  ans = 6, wa = 0
Sample Input 2 : WA  ans = 2, wa = 0
Sample Input 3 : WA  ans = 6, wa = 0
Sample Input 4 : WA  ans = 14, wa = 0


~/workspace/atcoder master
❯ act abc066 b
Log in...
Compile...
Fetch testcases...

Sample Input 1 : AC
Sample Input 2 : AC
Sample Input 3 : AC
Sample Input 4 : AC

Submit...Complete!

~/workspace/atcoder master
❯ arc081 a
zsh: command not found: arc081

~/workspace/atcoder master
❯ act arc081 a
Log in...
Compile...
Fetch testcases...

Sample Input 1 : WA  ans = 2, wa = 0
Sample Input 2 : AC
Sample Input 3 : WA  ans = 20, wa = 9


~/workspace/atcoder master
❯ act arc081 a
Log in...
Compile...
Fetch testcases...

Sample Input 1 : WA  ans = 2, wa = 0
Sample Input 2 : AC
Sample Input 3 : WA  ans = 20, wa = 15


~/workspace/atcoder master
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
6
3 1 2 4 2 1
1 2
2 2
3 1
4 1
0

~/workspace/atcoder master
❯ act arc081 a
Log in...
Compile...
Fetch testcases...

Sample Input 1 : AC
Sample Input 2 : AC
Sample Input 3 : AC

Submit...Complete!

~/workspace/atcoder master
❯ act abc076 c
Log in...
Compile...
Fetch testcases...

Sample Input 1 : WA  ans = ?tc???? coder, wa = ~
Sample Input 2 : WA  ans = ??p??d?? abc, wa = atcoder
Sample Input 3 : WA  ans = <var>S</var> <var>T'</var>, wa = UNRESTORABLE
Sample Input 4 : WA  ans = atcoder, wa = ~
Sample Input 5 : WA  ans = UNRESTORABLE, wa = ~


~/workspace/atcoder master
❯ act abc076 c
Log in...
Compile...
Fetch testcases...

Sample Input 1 : WA  ans = ?tc???? coder, wa = UNRESTORABLE
Sample Input 2 : WA  ans = ??p??d?? abc, wa = atcoder
Sample Input 3 : WA  ans = <var>S</var> <var>T'</var>, wa = UNRESTORABLE
Sample Input 4 : WA  ans = atcoder, wa = UNRESTORABLE
Sample Input 5 : AC


~/workspace/atcoder master
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
?tc????
coder
UNRESTORABLE

~/workspace/atcoder master 6s
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
?tc????
coder
atcoder

~/workspace/atcoder master
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
??p??d??
abc
UNRESTORABLE

~/workspace/atcoder master
❯ act arc097 c
Log in...
Compile...
Fetch testcases...

Sample Input 1 : WA  ans = 4, wa = 1
Sample Input 2 : WA  ans = 18, wa = 1
Sample Input 3 : WA  ans = 41, wa = 


~/workspace/atcoder master
❯ act arc097 c
Log in...
Compile...
Fetch testcases...

Sample Input 1 : WA  ans = 4, wa = 
Sample Input 2 : WA  ans = 18, wa = 
Sample Input 3 : WA  ans = 41, wa = 1


~/workspace/atcoder master
❯ act arc097 b
Log in...
Compile...
Fetch testcases...

Sample Input 1 : AC
Sample Input 2 : AC
Sample Input 3 : AC
Sample Input 4 : AC

Submit...Complete!

~/workspace/atcoder master
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
2
1 2
20000 40000
799980000 799960001

~/workspace/atcoder master 7s
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
3
3 2 1
60000 40000 20000
799940002 799960001 799980000

~/workspace/atcoder master 6s
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
3
3 2 1
20000 40000 60000
799980002 799960001 799940000

~/workspace/atcoder master
❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
3
2 3 1
20000 40000 60000
799980002 799960000 799940001

~/workspace/atcoder master
❯ 

Compiler output:
a.cc:3:1: error: extended character ❯ is not valid in an identifier
    3 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:9:1: error: extended character ❯ is not valid in an identifier
    9 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:15:1: error: extended character ❯ is not valid in an identifier
   15 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:21:1: error: extended character ❯ is not valid in an identifier
   21 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:27:1: error: extended character ❯ is not valid in an identifier
   27 | ❯ act abc145 c
      | ^
a.cc:38:1: error: extended character ❯ is not valid in an identifier
   38 | ❯ act abc145 c
      | ^
a.cc:49:1: error: extended character ❯ is not valid in an identifier
   49 | ❯ act abc145 c
      | ^
a.cc:61:1: error: extended character ❯ is not valid in an identifier
   61 | ❯ act abc148 f
      | ^
a.cc:74:1: error: extended character ❯ is not valid in an identifier
   74 | ❯ act abc148 f
      | ^
a.cc:87:1: error: extended character ❯ is not valid in an identifier
   87 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:92:1: error: extended character ❯ is not valid in an identifier
   92 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:97:1: error: extended character ❯ is not valid in an identifier
   97 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:102:1: error: extended character ❯ is not valid in an identifier
  102 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:107:1: error: extended character ❯ is not valid in an identifier
  107 | ❯ act abc066 b
      | ^
a.cc:117:48: warning: multi-character literal with 17 characters exceeds 'int' size of 4 bytes
  117 | terminate called after throwing an instance of 'std::out_of_range'
      |                                                ^~~~~~~~~~~~~~~~~~~
a.cc:118:50: warning: integer constant is so large that it is unsigned
  118 |   what():  basic_string::substr: __pos (which is 18446744073709551615) > this->size() (which is 18446744073709551614)
      |                                                  ^~~~~~~~~~~~~~~~~~~~
a.cc:118:97: warning: integer constant is so large that it is unsigned
  118 |   what():  basic_string::substr: __pos (which is 18446744073709551615) > this->size() (which is 18446744073709551614)
      |                                                                                                 ^~~~~~~~~~~~~~~~~~~~
a.cc:123:1: error: extended character ❯ is not valid in an identifier
  123 | ❯ act abc066 b
      | ^
a.cc:133:48: warning: multi-character literal with 17 characters exceeds 'int' size of 4 bytes
  133 | terminate called after throwing an instance of 'std::out_of_range'
      |                                                ^~~~~~~~~~~~~~~~~~~
a.cc:134:50: warning: integer constant is so large that it is unsigned
  134 |   what():  basic_string::substr: __pos (which is 18446744073709551615) > this->size() (which is 18446744073709551614)
      |                                                  ^~~~~~~~~~~~~~~~~~~~
a.cc:134:97: warning: integer constant is so large that it is unsigned
  134 |   what():  basic_string::substr: __pos (which is 18446744073709551615) > this->size() (which is 18446744073709551614)
      |                                                                                                 ^~~~~~~~~~~~~~~~~~~~
a.cc:139:1: error: extended character ❯ is not valid in an identifier
  139 | ❯ act abc066 b
      | ^
a.cc:151:1: error: extended character ❯ is not valid in an identifier
  151 | ❯ act abc066 b
      | ^
a.cc:164:1: error: extended character ❯ is not valid in an identifier
  164 | ❯ arc081 a
      | ^
a.cc:168:1: error: extended character ❯ is not valid in an identifier
  168 | ❯ act arc081 a
      | ^
a.cc:179:1: error: extended character ❯ is not valid in an identifier
  179 | ❯ act arc081 a
      | ^
a.cc:190:1: error: extended character ❯ is not valid in an identifier
  190 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:200:1: error: extended character ❯ is not valid in an identifier
  200 | ❯ act arc081 a
      | ^
a.cc:212:1: error: extended character ❯ is not valid in an identifier
  212 | ❯ act abc076 c
      | ^
a.cc:219:47: warning: missing terminating ' character
  219 | Sample Input 3 : WA  ans = <var>S</var> <var>T'</var>, wa = UNRESTORABLE
      |                                               ^
a.cc:219:47: error: missing terminating ' character
  219 | Sample Input 3 : WA  ans = <var>S</var> <var>T'</var>, wa = UNRESTORABLE
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:225:1: error: extended character ❯ is not valid in an identifier
  225 | ❯ act abc076 c
      | ^
a.cc:232:47: warning: missing terminating ' character
  232 | Sample Input 3 : WA  ans = <var>S</var> <var>T'</var>, wa = UNRESTORABLE
      |                                               ^
a.cc:232:47: error: missing terminating ' character
  232 | Sample Input 3 : WA  ans = <var>S</var> <var>T'</var>, wa = UNRESTORABLE
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:238:1: error: extended character ❯ is not valid in an identifier
  238 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:244:1: error: extended character ❯ is not valid in an identifier
  244 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:250:1: error: extended character ❯ is not valid in an identifier
  250 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:256:1: error: extended character ❯ is not valid in an identifier
  256 | ❯ act arc097 c
      | ^
a.cc:267:1: error: extended character ❯ is not valid in an identifier
  267 | ❯ act arc097 c
      | ^
a.cc:278:1: error: extended character ❯ is not valid in an identifier
  278 | ❯ act arc097 b
      | ^
a.cc:291:1: error: extended character ❯ is not valid in an identifier
  291 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:298:1: error: extended character ❯ is not valid in an identifier
  298 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:305:1: error: extended character ❯ is not valid in an identifier
  305 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:312:1: error: extended character ❯ is not valid in an identifier
  312 | ❯ cd "/Users/ryochansq/workspace/atcoder/" && g++ main.cpp -o main && "/Users/ryochansq/workspace/atcoder/"main
      | ^
a.cc:319:1: error: extended character ❯ is not valid in an identifier
  319 | ❯
      | ^
a.cc:2:2: error: expected class-name before '/' token
    2 | ~/workspace/atcoder master
      |  ^