~cpp
#include <iostream>
using namespace std;
struct InputData
{
int s;
int f;
int k;
};
InputData* inputData;
bool *outputData;
int numberOfData;
void input()
{
cin >> numberOfData;
inputData = new InputData[numberOfData];
outputData = new bool[numberOfData];
for(int i = 0;i < numberOfData;i++)
cin >> inputData[i].s >> inputData[i].f >> inputData[i].k;
}
void process()
{
int count;
for(int i =0;i < numberOfData;i++) {
count = inputData[i].f - inputData[i].s - 1;
if(inputData[i].s % 2 == 0)
count -= 1;
if( ((count / inputData[i].k) % 2 == 1 && (count % inputData[i].k) == 0)
|| ((count / inputData[i].k) % 2 == 0 && (count % inputData[i].k) != 0))
outputData[i] = true;
else
outputData[i] = false;
}
}
void output()
{
for(int i = 0;i < numberOfData;i++)
cout << outputData[i] << "\n";
delete [] inputData;
delete [] outputData;
}
void main()
{
input();
process();
output();
}
는
.
번
보
. (
대,
~cpp (6,14,5)
대
보
)
런 문
는 MEA를
면
. --
JuNe
MEA 뭐...? 리..? --
Means Ends Analysis
는데
문
.
노
문
.
리
보면
. 1975
링
받
런 뉴
먼(
The Sciences of the Artificial )
립
. --
JuNe