114942024-10-12 22:44:15Lacus0606Kiváló Számokpython3Wrong answer 0/10019ms4756 KiB
N = int(input())
if N==1:
    megoldas=-1
if N%3==0:
    megoldas = "1"*(N)
    megoldas = int(megoldas)
elif N%3==1:
    megoldas = "5"*(N-2) + "1"*2
    megoldas = int(megoldas)
elif N%3==2:
    megoldas = "5" + "1"*(N-1)
    megoldas = int(megoldas)
print(megoldas)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted14ms2872 KiB
subtask20/33
2Wrong answer16ms2872 KiB
3Accepted16ms2872 KiB
4Accepted14ms2968 KiB
5Accepted14ms2976 KiB
6Accepted16ms3024 KiB
7Accepted16ms3112 KiB
8Accepted16ms3092 KiB
subtask30/33
9Runtime error16ms3128 KiB
10Runtime error17ms3900 KiB
11Runtime error17ms3640 KiB
12Runtime error17ms3984 KiB
13Runtime error17ms3896 KiB
14Runtime error16ms3488 KiB
15Runtime error14ms3224 KiB
16Runtime error16ms3128 KiB
17Runtime error17ms3384 KiB
18Runtime error17ms4088 KiB
19Runtime error17ms3384 KiB
20Runtime error18ms4300 KiB
subtask40/34
21Runtime error19ms4756 KiB
22Runtime error16ms3324 KiB
23Runtime error18ms4716 KiB
24Runtime error17ms4004 KiB
25Runtime error17ms3696 KiB
26Runtime error17ms3324 KiB
27Runtime error17ms4456 KiB
28Runtime error17ms4412 KiB
29Runtime error16ms3132 KiB
30Runtime error18ms4152 KiB
31Runtime error17ms4164 KiB
32Runtime error14ms2996 KiB
33Runtime error14ms2988 KiB