94422024-02-21 18:28:34Vkrisztian01Főzet készítéscpp11Wrong answer 0/5085ms18384 KiB
#include <iostream>
#include<set>
#include<algorithm>

using namespace std;

int gcd(int a,int b)
{
    if(b>a) swap(a,b);
    if(b!=0) return gcd(a%b,b);
    else return a;
}
int q,n,m,db,ossze,a;
set<pair<int,int> > seged;

int main()
{
    for(int i=1;i<=500;i++)
    {
        for(int j=1;j<=500;j++)
        {
            a=gcd(i,j);
            seged.insert(make_pair(i/a,j/a));
        }
    }
    cout<<seged.size();
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/083ms16052 KiB
2Wrong answer0/082ms16312 KiB
3Wrong answer0/382ms16480 KiB
4Wrong answer0/282ms16360 KiB
5Wrong answer0/383ms16612 KiB
6Wrong answer0/282ms16568 KiB
7Wrong answer0/383ms16840 KiB
8Wrong answer0/283ms17164 KiB
9Wrong answer0/383ms17236 KiB
10Wrong answer0/285ms17400 KiB
11Wrong answer0/283ms17356 KiB
12Wrong answer0/282ms17360 KiB
13Wrong answer0/285ms17616 KiB
14Wrong answer0/283ms17868 KiB
15Wrong answer0/283ms17952 KiB
16Wrong answer0/285ms18100 KiB
17Wrong answer0/283ms18364 KiB
18Wrong answer0/282ms18368 KiB
19Wrong answer0/282ms18384 KiB
20Wrong answer0/382ms18320 KiB
21Wrong answer0/382ms18276 KiB
22Wrong answer0/382ms18296 KiB
23Wrong answer0/383ms18264 KiB