Witam.
Ciągle pokazuje mi błędną odpowiedź. Pomoże ktoś?
Link do zadania:http://pl.spoj.com/problems/MWPZ06D/
#include <iostream>
#include <math.h>
using namespace std;
int D;
int a, b;
int main()
{
cin >> D;
int L;
int C;
if ((1 <= D) && (D <= 500))
{
for (int E = 1; E <= D; E++)
{
cin >> L;
cin >> C;
int G;
int F;
if ((1 <= L) && (L <= pow(10, 9)) && (1 <= C) && (C <= pow(10, 9)))
{
F = C / L;
G = F * L;
if (G == C)
{
cout << "NIE" << endl;
}
else if (G != C)
{
cout << "TAK" << endl;
}
}
}
}
return 0;
}