114922024-10-12 22:40:27Lacus0606Kiváló Számokpython3Wrong answer 0/10019ms5112 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)
    
    return megoldas
main()
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer14ms2872 KiB
subtask20/33
2Wrong answer16ms2864 KiB
3Wrong answer16ms3056 KiB
4Wrong answer16ms2872 KiB
5Wrong answer14ms3120 KiB
6Wrong answer16ms2880 KiB
7Wrong answer14ms3084 KiB
8Wrong answer16ms2968 KiB
subtask30/33
9Runtime error16ms3312 KiB
10Runtime error17ms3896 KiB
11Runtime error17ms3640 KiB
12Runtime error17ms3896 KiB
13Runtime error17ms3896 KiB
14Runtime error17ms3608 KiB
15Runtime error16ms3224 KiB
16Runtime error17ms3232 KiB
17Runtime error17ms3444 KiB
18Runtime error17ms3908 KiB
19Runtime error16ms3272 KiB
20Runtime error18ms4428 KiB
subtask40/34
21Runtime error18ms5112 KiB
22Runtime error17ms3384 KiB
23Runtime error19ms4932 KiB
24Runtime error17ms4080 KiB
25Runtime error17ms3776 KiB
26Runtime error17ms3424 KiB
27Runtime error17ms4412 KiB
28Runtime error17ms4416 KiB
29Runtime error16ms3376 KiB
30Runtime error17ms4152 KiB
31Runtime error18ms4336 KiB
32Runtime error14ms3148 KiB
33Runtime error14ms3052 KiB