Submission #24364149


Source Code Expand

II=lambda:int(input())
MI=lambda:list(map(int,input().split()))

N=II()
A=MI()
B=MI()
C=MI()

A.sort()
B.sort()
C.sort()

loa=lob=loc=ans=0
while loa<N:
  while A[loa]>=B[lob]:
    lob+=1
    if lob==N:exit(print(ans))
  while B[lob]>=C[loc]:
    loc+=1
    if loc==N:exit(print(ans))
  ans+=1
  loa+=1;lob+=1;loc+=1
  if loa==N or lob==N or loc==N:exit(print(ans))
print(ans)

Submission Info

Submission Time
Task B - Increasing Triples
User Pandruant
Language PyPy3 (7.3.0)
Score 400
Code Size 376 Byte
Status AC
Exec Time 165 ms
Memory 98364 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 400 / 400
Status
AC × 3
AC × 36
Set Name Test Cases
Sample 01_sample_01.txt, 01_sample_02.txt, 01_sample_03.txt
All 01_sample_01.txt, 01_sample_02.txt, 01_sample_03.txt, 02_rand_01.txt, 02_rand_02.txt, 02_rand_03.txt, 02_rand_04.txt, 02_rand_05.txt, 02_rand_06.txt, 02_rand_07.txt, 02_rand_08.txt, 02_rand_09.txt, 02_rand_10.txt, 03_rand_dense_01.txt, 03_rand_dense_02.txt, 03_rand_dense_03.txt, 03_rand_dense_04.txt, 03_rand_dense_05.txt, 03_rand_dense_06.txt, 03_rand_dense_07.txt, 03_rand_dense_08.txt, 03_rand_dense_09.txt, 03_rand_dense_10.txt, 04_small_ans_01.txt, 04_small_ans_02.txt, 04_small_ans_03.txt, 04_small_ans_04.txt, 04_small_ans_05.txt, 04_small_ans_06.txt, 04_small_ans_07.txt, 04_small_ans_08.txt, 04_small_ans_09.txt, 04_small_ans_10.txt, 05_handmade_01.txt, 05_handmade_02.txt, 05_handmade_03.txt
Case Name Status Exec Time Memory
01_sample_01.txt AC 62 ms 61772 KiB
01_sample_02.txt AC 53 ms 61684 KiB
01_sample_03.txt AC 51 ms 61872 KiB
02_rand_01.txt AC 161 ms 97752 KiB
02_rand_02.txt AC 164 ms 98364 KiB
02_rand_03.txt AC 161 ms 97656 KiB
02_rand_04.txt AC 160 ms 97612 KiB
02_rand_05.txt AC 161 ms 97640 KiB
02_rand_06.txt AC 159 ms 98328 KiB
02_rand_07.txt AC 165 ms 98116 KiB
02_rand_08.txt AC 163 ms 97752 KiB
02_rand_09.txt AC 162 ms 98176 KiB
02_rand_10.txt AC 162 ms 97552 KiB
03_rand_dense_01.txt AC 130 ms 93284 KiB
03_rand_dense_02.txt AC 137 ms 93564 KiB
03_rand_dense_03.txt AC 131 ms 93468 KiB
03_rand_dense_04.txt AC 131 ms 93380 KiB
03_rand_dense_05.txt AC 137 ms 93420 KiB
03_rand_dense_06.txt AC 134 ms 93284 KiB
03_rand_dense_07.txt AC 133 ms 93576 KiB
03_rand_dense_08.txt AC 132 ms 93508 KiB
03_rand_dense_09.txt AC 132 ms 93300 KiB
03_rand_dense_10.txt AC 131 ms 93264 KiB
04_small_ans_01.txt AC 144 ms 92664 KiB
04_small_ans_02.txt AC 156 ms 97188 KiB
04_small_ans_03.txt AC 155 ms 97396 KiB
04_small_ans_04.txt AC 91 ms 73836 KiB
04_small_ans_05.txt AC 134 ms 86948 KiB
04_small_ans_06.txt AC 60 ms 67768 KiB
04_small_ans_07.txt AC 100 ms 78156 KiB
04_small_ans_08.txt AC 98 ms 80416 KiB
04_small_ans_09.txt AC 63 ms 67812 KiB
04_small_ans_10.txt AC 101 ms 80100 KiB
05_handmade_01.txt AC 153 ms 95816 KiB
05_handmade_02.txt AC 154 ms 96292 KiB
05_handmade_03.txt AC 110 ms 96900 KiB