System Administrator
Statement
Goal
Guess the correct output.Input
Line 1: An int N.
N strings of the form "-XXXXXXXXX" (where X can be 'r ','w ', 'x ' or '- ').
N strings of the form "-XXXXXXXXX" (where X can be '
Output
N lines of int
Constraints
Example
Input
4 -r---w---x -rwxr-xr-x -r--rw-rwx -rwx------
Output
421 755 467 700
Game modes
Reverse
Test cases
Test 1 Test
Input
4
-r---w---x
-rwxr-xr-x
-r--rw-rwx
-rwx------
Output
421
755
467
700
Validator 1 Validator
Input
6
-rwxrwxrwx
-r---w---x
-rwx------
-rwxr-xr-x
----------
-r--rw-rwx
Output
777
421
700
755
000
467
Test 2 Test
Input
4
-rwxrwxrwx
-rwx------
-rw--w--wx
-rw-r-xr-x
Output
777
700
623
655
Validator 2 Validator
Input
1
---x--xr--
Output
114
Test 3 Test
Input
1
----------
Output
000
Validator 3 Validator
Input
3
---x-w-r--
-rwxrw-rw-
-r--rwxrw-
Output
124
766
476
Test 4 Test
Input
2
-rwxrwx---
-rwx---rwx
Output
770
707
Validator 4 Validator
Input
2
-rwx---rwx
----rwxrwx
Output
707
077
Solution language
Solution
Stub generator input