Submission #62022475


Source Code Expand

Copy
import math
import bisect
from sys import stdin, stdout
from math import gcd, floor, sqrt, log, log2, pi, ceil, prod
from collections import defaultdict as dd
from bisect import bisect_left as bl, bisect_right as br
from heapq import *
from collections import deque, Counter as ctr
inp = lambda: int(stdin.readline())
inpf = lambda: float(stdin.readline())
inps = lambda: stdin.readline().strip()
seq = lambda: list(map(int, stdin.readline().strip().split()))
seqc = lambda: list(stdin.readline().strip())
mul = lambda: map(int, stdin.readline().strip().split())
mulf = lambda: map(float, stdin.readline().strip().split())
muls = lambda: stdin.readline().strip().split()
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
import math
import bisect
from sys import stdin, stdout
from math import gcd, floor, sqrt, log, log2, pi, ceil, prod
from collections import defaultdict as dd
from bisect import bisect_left as bl, bisect_right as br
from heapq import *
from collections import deque, Counter as ctr


inp = lambda: int(stdin.readline())
inpf = lambda: float(stdin.readline())
inps = lambda: stdin.readline().strip()

seq = lambda: list(map(int, stdin.readline().strip().split()))
seqc = lambda: list(stdin.readline().strip())

mul = lambda: map(int, stdin.readline().strip().split())
mulf = lambda: map(float, stdin.readline().strip().split())
muls = lambda: stdin.readline().strip().split()

jn = lambda x, l: x.join(map(str, l))

ceildiv = lambda x, d: -(x // -d)

flush = lambda: stdout.flush()
fastprint = lambda x: stdout.write(str(x))

mod = 998244353


def main():
    a = seq()
    if a in [[1,2,3,5,4],[1,2,4,3,5],[1,3,2,4,5],[2,1,3,4,5]]:
        return "Yes"
    return "No"
    

MULT = False
rg = inp() if MULT else 1

for i in range(rg):
    ret = main()
    if ret is not None:
        if isinstance(ret, tuple) or isinstance(ret, list):
            print(*ret)
        else:
            print(ret)

Submission Info

Submission Time
Task A - 12435
User TheShubhi
Language Python (PyPy 3.10-v7.3.12)
Score 150
Code Size 1245 Byte
Status AC
Exec Time 72 ms
Memory 76980 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 150 / 150
Status
AC × 4
AC × 15
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_handmade_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 02_Yes_00.txt, 02_Yes_01.txt, 03_No_00.txt, 03_No_01.txt, 03_No_02.txt, 03_No_03.txt, 03_No_04.txt, 03_No_05.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 71 ms 76916 KB
00_sample_01.txt AC 71 ms 76660 KB
00_sample_02.txt AC 71 ms 76980 KB
00_sample_03.txt AC 71 ms 76668 KB
01_handmade_00.txt AC 71 ms 76792 KB
01_handmade_01.txt AC 71 ms 76680 KB
01_handmade_02.txt AC 70 ms 76592 KB
02_Yes_00.txt AC 70 ms 76800 KB
02_Yes_01.txt AC 71 ms 76676 KB
03_No_00.txt AC 70 ms 76608 KB
03_No_01.txt AC 71 ms 76872 KB
03_No_02.txt AC 72 ms 76944 KB
03_No_03.txt AC 70 ms 76936 KB
03_No_04.txt AC 70 ms 76800 KB
03_No_05.txt AC 72 ms 76608 KB


2025-03-05 (Wed)
12:33:06 +00:00