CSES - E4590 2018 0 - Results
Submission details
Task:A + B
Sender:jeroenrobben
Submission time:2018-09-12 23:27:05 +0300
Language:Python3
Status:READY
Result:
Test results
testverdicttime
#10.02 sdetails
#20.02 sdetails
#30.02 sdetails
#40.02 sdetails
#50.02 sdetails
#60.02 sdetails
#70.02 sdetails
#80.02 sdetails
#90.02 sdetails
#100.02 sdetails

Code

n = float(input())

outputFloat = (n - n**3)/3 + (n**3 + n**2)/2
print(str(int(outputFloat)))

Test details

Test 1

Verdict:

input
3 5

correct output
8

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 1, in <module>
    n = float(input())
ValueError: could not convert string to float: '3 5'

Test 2

Verdict:

input
-6 4

correct output
-2

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 1, in <module>
    n = float(input())
ValueError: could not convert string to float: '-6 4'

Test 3

Verdict:

input
-882818 -697825

correct output
-1580643

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 1, in <module>
    n = float(input())
ValueError: could not convert string to float: '-882818 -697825\r'

Test 4

Verdict:

input
-357110 -868193

correct output
-1225303

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 1, in <module>
    n = float(input())
ValueError: could not convert string to float: '-357110 -868193\r'

Test 5

Verdict:

input
577866 -227464

correct output
350402

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 1, in <module>
    n = float(input())
ValueError: could not convert string to float: '577866 -227464\r'

Test 6

Verdict:

input
571335 750047

correct output
1321382

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 1, in <module>
    n = float(input())
ValueError: could not convert string to float: '571335 750047\r'

Test 7

Verdict:

input
744471 719178

correct output
1463649

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 1, in <module>
    n = float(input())
ValueError: could not convert string to float: '744471 719178\r'

Test 8

Verdict:

input
629697 -138795

correct output
490902

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 1, in <module>
    n = float(input())
ValueError: could not convert string to float: '629697 -138795\r'

Test 9

Verdict:

input
308833 436123

correct output
744956

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 1, in <module>
    n = float(input())
ValueError: could not convert string to float: '308833 436123\r'

Test 10

Verdict:

input
-486131 -888278

correct output
-1374409

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 1, in <module>
    n = float(input())
ValueError: could not convert string to float: '-486131 -888278\r'