0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-08 14:18:47 +00:00

T228731 「Wdoi-5」天才⑨与天才拆分

R71864295
This commit is contained in:
Baoshuo Ren 2022-03-20 13:09:47 +08:00
parent 94d9eccb37
commit 8005fa0ac8
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

22
Luogu/T228731/T228731.cpp Normal file
View File

@ -0,0 +1,22 @@
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int t;
long long k, n, x;
int main() {
std::ios::sync_with_stdio(false);
cin >> t;
while (t--) {
x = 0;
cin >> k >> n;
for (int i = 1; i <= k; i++) {
x = x * 10 + 9;
}
cout << (n % x == 0 ? "aya" : "baka") << endl;
}
return 0;
}