XOR Exponents

Submit

Your name:
File:
Open code-statistics:

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

6day(s) and 6:56:10 before deadline (12/03 07:00:26 JST), all source codes will be revealed after the deadline

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

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o390.04642022/11/19 23:48:090B / 15B / 19B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o390.18462022/11/19 23:47:560B / 15B / 19B
2Steffan540.25172022/11/21 13:09:150B / 25B / 25B

Perl _

RankUserSizeTimeDateStatistics
1tails360.04642022/11/19 15:21:590B / 16B / 19B
2rotary-o360.05332022/11/19 23:48:210B / 13B / 21B
3Sisyphus400.04922022/11/19 10:26:170B / 15B / 23B

Python _

RankUserSizeTimeDateStatistics
1hallvabo690.09242022/11/20 20:39:520B / 38B / 28B

Python3 _

RankUserSizeTimeDateStatistics
1hallvabo660.20742022/11/20 20:47:410B / 35B / 29B
2AlephSquirrel1020.14032022/11/19 10:49:440B / ?B / ?B
3greencis1060.14142022/11/25 06:30:420B / 50B / 49B

C _

RankUserSizeTimeDateStatistics
1tails1010.04122022/11/21 13:42:000B / 56B / 43B
2rotary-o1010.90162022/11/21 22:32:270B / 56B / 43B

Java _

RankUserSizeTimeDateStatistics
1rotary-o2450.20292022/11/20 09:24:580B / 157B / 79B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails490.08912022/11/24 10:01:590B / 23B / 18B
2McBusLuck520.08302022/11/23 21:00:490B / 21B / 23B

GolfScript _

RankUserSizeTimeDateStatistics
1tails260.08392022/11/19 16:14:330B / 4B / 22B

gs2 _

RankUserSizeTimeDateStatistics
1whio110.20822022/11/19 08:26:494B / 6B / 1B
2tails110.21272022/11/19 15:04:254B / 6B / 1B

Nibbles _

RankUserSizeTimeDateStatistics
1tails60.07442022/11/19 15:32:136B / 0B / 0B

Lazy-K _

RankUserSizeTimeDateStatistics
1tails (source)84612.50522022/11/21 22:48:410B / 3959B / 3239B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o11310.18572022/11/19 22:23:000B / 72B / 37B

Language Ranking_

RankLangUserSizeScore
1Nibblestails610000
2gs2whio115454
3GolfScripttails262307
4Perltails361666
5Ruby2rotary-o391538
6Rubyrotary-o391538
7Bash (builtins)tails491224
8Python3hallvabo66909
9Pythonhallvabo69869
10Ctails101594
11Scalarotary-o113530
12Javarotary-o245244
13Lazy-Ktails (source)84617

return to the top page