题目:https://vjudge.net/problem/HDU-2101
思路:判断每次输入的a+b是否可以整出86,如果是输出yes,如果不是,输出no。
c++ AC代码如下:
#include <iostream>
using namespace std;
int main()
{
int a, b;
while (cin >> a >> b)
{
if ((a + b) % 86 == 0)cout << "yes" << endl;
else cout << "no" << endl;
}
}