Submission #75043709


Source Code Expand

print(1+sum((int(i)*(-1)**n for n, i in enumerate(input().split(), start = 1))))

Submission Info

Submission Time
Task A - Closed interval
User hydroxed_sil
Language Python (PyPy 3.11-v7.3.20)
Score 100
Code Size 80 Byte
Status AC
Exec Time 54 ms
Memory 79744 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_handmade_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 01_handmade_03.txt, 01_handmade_04.txt, 01_handmade_05.txt, 01_handmade_06.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 54 ms 79700 KiB
00_sample_01.txt AC 54 ms 79720 KiB
00_sample_02.txt AC 53 ms 79540 KiB
01_handmade_00.txt AC 53 ms 79520 KiB
01_handmade_01.txt AC 53 ms 79692 KiB
01_handmade_02.txt AC 52 ms 79696 KiB
01_handmade_03.txt AC 54 ms 79716 KiB
01_handmade_04.txt AC 53 ms 79640 KiB
01_handmade_05.txt AC 53 ms 79744 KiB
01_handmade_06.txt AC 53 ms 79556 KiB