Submission #8890318


Source Code Expand

n = int(input())
if n % 2 == 0:
  print(n - 1)
else:
  print(n + 1)

Submission Info

Submission Time
Task B - ペア
User crashboy
Language Python (3.4.3)
Score 100
Code Size 71 Byte
Status AC
Exec Time 19 ms
Memory 3060 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 22
Set Name Test Cases
Sample s0.txt, s1.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, 016.txt, 017.txt, 018.txt, 019.txt, s0.txt, s1.txt
Case Name Status Exec Time Memory
000.txt AC 17 ms 2940 KB
001.txt AC 17 ms 2940 KB
002.txt AC 17 ms 2940 KB
003.txt AC 17 ms 2940 KB
004.txt AC 17 ms 2940 KB
005.txt AC 17 ms 2940 KB
006.txt AC 17 ms 2940 KB
007.txt AC 17 ms 2940 KB
008.txt AC 17 ms 2940 KB
009.txt AC 17 ms 2940 KB
010.txt AC 17 ms 2940 KB
011.txt AC 17 ms 2940 KB
012.txt AC 17 ms 2940 KB
013.txt AC 17 ms 2940 KB
014.txt AC 17 ms 2940 KB
015.txt AC 17 ms 2940 KB
016.txt AC 17 ms 2940 KB
017.txt AC 17 ms 2940 KB
018.txt AC 19 ms 3060 KB
019.txt AC 17 ms 2940 KB
s0.txt AC 17 ms 2940 KB
s1.txt AC 17 ms 2940 KB