Submission #29514142


Source Code Expand

a, b = map(int, input().split())
if (a - b) ** 2 == 1 or (a - b) ** 2 == 81:
    print('Yes')
else:
    print('No')

Submission Info

Submission Time
Task A - Edge Checker
User is0292hx
Language Python (3.8.2)
Score 100
Code Size 119 Byte
Status AC
Exec Time 24 ms
Memory 9160 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 16
Set Name Test Cases
Sample example0.txt, example1.txt, example2.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, example0.txt, example1.txt, example2.txt
Case Name Status Exec Time Memory
000.txt AC 24 ms 9160 KiB
001.txt AC 18 ms 9020 KiB
002.txt AC 24 ms 8972 KiB
003.txt AC 17 ms 8868 KiB
004.txt AC 19 ms 8860 KiB
005.txt AC 23 ms 8868 KiB
006.txt AC 18 ms 8816 KiB
007.txt AC 19 ms 9100 KiB
008.txt AC 19 ms 9052 KiB
009.txt AC 18 ms 9028 KiB
010.txt AC 24 ms 8868 KiB
011.txt AC 18 ms 8864 KiB
012.txt AC 18 ms 8860 KiB
example0.txt AC 23 ms 9020 KiB
example1.txt AC 20 ms 9160 KiB
example2.txt AC 19 ms 9104 KiB