XOR Exponents
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
On each line, a list of numbers separated by ^ operators is given. Evaluate each line. But beware! The ^ operators on each line alternate between exponentiation and XOR, always starting with exponentiation.
Note: exponentiation has higher precedence than XOR.
Options
exec is denied
rejudge feature is enabled
now post-mortem time, all source codes will be revealed
Sample input:_
0^12^11^8^7
3^2^2^13^3^7^8^1
15^2^12
8^7
6^6
1^6^14^10
8^2^15
14^4^15^1^12^7^4^12^5
0^13
3^14^0^15^14^13^8^3
2^6^9^5
12^10
1^7^9^14^3^10^8^7
0^2
5^5^8^10^12^9^6
0^2^2^2^12^0^12^4^3^5
9^9^10^11
0^9^12^8^10^2^4
8^13^13^11^2^0^9^11^7^14
7^4^1^9
Sample output:
214358886
10378
237
2097152
46656
289254654977
79
52581914
0
793714776873337
59113
61917364224
22876794558873
0
6233525299
20982
100384471369
429981792
1906468412796
2400
Sample input:_
3^15^0^5^11^9
10^15^2^1^4^3
4^5^9^9
9^14^10^14^0
14^12^10^1^13^5
12^0^10^12^7^3^5^10
5^0
0^5^15^6^4^7^13^9
1^11^13^11
7^12^7^12
2^10^2^1^12^15^6^8^8^12
9^3^15^6^0^14
14^8^2^7^8^4^14^5
2^12^10^15^8^13
10^2^10^4^10^0^9^1
0^13^11^3^0^6
4^8^8^3^5^8^8^12^9^8
9^4^5^9^3^8^15^4^9^3
12^5^7^5^14^3
14^10^4^1^11^12^7^14^8
Sample output:
2354159424
1000000000000066
387421513
86025970663217
56693912746583
999992333231
1
10615676684
1792160394036
0
15406952856790274
11390072
1476322656
1000549755817984
10108
1331
68762738848
1903229
231199
2216358157516
Sample input:_
13^6^11
2^4^10^12^3^14^0^3^13^13
7^4
7^11^15^13^5^7^3^13^0^13
1^1^7^6^9^10^9^5^0
8^7^12^5^8^13^9^13^8^13
2^8^7^2
3^12
1^1^15^9
0^9^0^12^14^6^8^2^9
14^3^14^4^0
0^9^7
8^12^11^5^5^7^6^4^12^14
15^11^5^11^1^10
10^12^13^0^2^12^3^2^2
5^2^8^15^3^10^13^10^4
2^8^6^1^0^9^4^8^6
9^12^9^10
4^2^7
0^2^5^10^12^4^5^5^8^6
Sample output:
4826802
303045641383572
2401
1946194309049510
3486856872
2541867873257
305
531441
38443359374
7529481
40104
7
1283849745285414
8649783711603
999999995914
35322230555517
65792
279404127088
23
9527244
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | rotary-o | 39 | 0.1846 | 2022/11/19 23:47:56 | 0B / 15B / 19B |
2 | Steffan | 54 | 0.2517 | 2022/11/21 13:09:15 | 0B / 25B / 25B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 36 | 0.0464 | 2022/11/19 15:21:59 | 0B / 16B / 19B |
2 | rotary-o | 36 | 0.0533 | 2022/11/19 23:48:21 | 0B / 13B / 21B |
3 | Sisyphus | 40 | 0.0492 | 2022/11/19 10:26:17 | 0B / 15B / 23B |
4 | Hydrazer | 42 | 0.0454 | 2022/11/27 10:03:23 | 0B / 14B / 26B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 49 | 0.0891 | 2022/11/24 10:01:59 | 0B / 23B / 18B |
2 | McBusLuck | 52 | 0.0830 | 2022/11/23 21:00:49 | 0B / 21B / 23B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 26 | 0.0839 | 2022/11/19 16:14:33 | 0B / 4B / 22B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | whio | 11 | 0.2082 | 2022/11/19 08:26:49 | 4B / 6B / 1B |
2 | tails | 11 | 0.2127 | 2022/11/19 15:04:25 | 4B / 6B / 1B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | Nibbles | tails | 6 | 10000 |
2 | gs2 | whio | 11 | 5454 |
3 | GolfScript | tails | 26 | 2307 |
4 | Perl | tails | 36 | 1666 |
5 | Ruby2 | rotary-o | 39 | 1538 |
6 | Ruby | rotary-o | 39 | 1538 |
7 | Bash (builtins) | tails | 49 | 1224 |
8 | Python3 | hallvabo | 66 | 909 |
9 | Python | hallvabo | 69 | 869 |
10 | C | rotary-o(tails) | 99 | 606 |
11 | Scala | rotary-o | 113 | 530 |
12 | Java | rotary-o | 245 | 244 |
13 | Lazy-K | tails (source) | 8461 | 7 |
return to the top page