0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-15 13:38:48 +00:00
OI-codes/Hydro/system_test/5/data/interactor.cc

23 lines
500 B
C++
Raw Normal View History

2021-11-27 01:14:07 +00:00
#include <iostream>
#include "testlib.h"
using namespace std;
int main(int argc, char* argv[]) {
setName("Interactor A+B");
registerInteraction(argc, argv);
// reads number of queries from test (input) file
int a = inf.readInt();
int b = inf.readInt();
// writes query to the solution, endl makes flush
cout << a << " " << b << endl;
int ans;
cin >> ans;
if (a + b == ans)
quitf(_ok, "!");
else
quitf(_wa, "?");
}