Submission #10144460


Source Code Expand

Copy
from sys import*
n=int(input())
a = [int(i) for i in input().split()]
for i in a:
  if i % 2:
    continue
  if i % 3 and i % 5:
    print("DENIED")
    exit(0)
print("APPROVED")

Submission Info

Submission Time
Task B - Papers, Please
User Def4ULt
Language PyPy3 (2.4.0)
Score 200
Code Size 187 Byte
Status AC
Exec Time 188 ms
Memory 38484 KB

Judge Result

Set Name Sample Subtask1
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 20
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
Subtask1 sample_01.txt, sample_02.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt, sub1_05.txt, sub1_06.txt, sub1_07.txt, sub1_08.txt, sub1_09.txt, sub1_10.txt, sub1_11.txt, sub1_12.txt, sub1_13.txt, sub1_14.txt, sub1_15.txt, sub1_16.txt, sub1_17.txt, sub1_18.txt
Case Name Status Exec Time Memory
sample_01.txt AC 179 ms 38256 KB
sample_02.txt AC 182 ms 38256 KB
sub1_01.txt AC 164 ms 38256 KB
sub1_02.txt AC 182 ms 38256 KB
sub1_03.txt AC 174 ms 38256 KB
sub1_04.txt AC 184 ms 38256 KB
sub1_05.txt AC 169 ms 38256 KB
sub1_06.txt AC 181 ms 38256 KB
sub1_07.txt AC 182 ms 38256 KB
sub1_08.txt AC 188 ms 38256 KB
sub1_09.txt AC 174 ms 38256 KB
sub1_10.txt AC 183 ms 38256 KB
sub1_11.txt AC 177 ms 38256 KB
sub1_12.txt AC 185 ms 38256 KB
sub1_13.txt AC 182 ms 38256 KB
sub1_14.txt AC 184 ms 38484 KB
sub1_15.txt AC 185 ms 38256 KB
sub1_16.txt AC 172 ms 38256 KB
sub1_17.txt AC 176 ms 38256 KB
sub1_18.txt AC 177 ms 38256 KB