147102025-01-28 19:33:33feheristvanA sárkány feladványa (50)cpp17Wrong answer 0/501ms508 KiB
#include <iostream>
#include <bits/stdc++.h>

#define ll long long

using namespace std;

int countDigit(int n) {
      // Base case
    if (n == 0)
        return 1;

    int count = 0;

      // Iterate till n has digits remaining
    while (n != 0) {

          // Remove rightmost digit
        n = n / 10;

          // Increment digit count by 1
        ++count;
    }
    return count;
}

ll lnko(ll a, ll b){
    int m;
    do{
        m = a % b;
        a = b;
        b = m;
    }while(b != 0);
    return a;
}

long long lkkt(ll a, ll b){
    return a * b / lnko(a, b);
}

int main()
{
    
    cout << -1 << "\n" << -1 << "\n" << -1 << "\n";
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/01ms328 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/31ms508 KiB
4Wrong answer0/31ms316 KiB
5Wrong answer0/31ms316 KiB
6Wrong answer0/31ms316 KiB
7Wrong answer0/31ms316 KiB
8Wrong answer0/31ms316 KiB
9Wrong answer0/31ms344 KiB
10Wrong answer0/31ms316 KiB
11Wrong answer0/31ms508 KiB
12Wrong answer0/31ms328 KiB
13Wrong answer0/41ms316 KiB
14Wrong answer0/41ms316 KiB
15Wrong answer0/41ms500 KiB
16Wrong answer0/41ms316 KiB
17Wrong answer0/41ms316 KiB