114932024-10-12 22:41:37Lacus0606Kiváló Számokpython3Wrong answer 0/10018ms4920 KiB
def main():
    n = int(input())
    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)
main()
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted16ms2872 KiB
subtask20/33
2Wrong answer16ms3056 KiB
3Accepted16ms2864 KiB
4Accepted16ms2860 KiB
5Accepted14ms2872 KiB
6Accepted14ms3080 KiB
7Accepted14ms2880 KiB
8Accepted16ms2912 KiB
subtask30/33
9Runtime error16ms3132 KiB
10Runtime error17ms3892 KiB
11Runtime error17ms3636 KiB
12Runtime error17ms3896 KiB
13Runtime error17ms3892 KiB
14Runtime error17ms3684 KiB
15Runtime error17ms3248 KiB
16Runtime error17ms3128 KiB
17Runtime error17ms3368 KiB
18Runtime error17ms4044 KiB
19Runtime error17ms3412 KiB
20Runtime error18ms4400 KiB
subtask40/34
21Runtime error18ms4756 KiB
22Runtime error17ms3340 KiB
23Runtime error17ms4920 KiB
24Runtime error18ms3896 KiB
25Runtime error18ms3644 KiB
26Runtime error17ms3320 KiB
27Runtime error17ms4600 KiB
28Runtime error17ms4340 KiB
29Runtime error17ms3308 KiB
30Runtime error18ms4152 KiB
31Runtime error17ms4336 KiB
32Runtime error17ms3128 KiB
33Runtime error16ms3164 KiB