数据范围:每个正整数不超过 $10^{60}$。
by 12345678hzx @ 2023-07-19 09:58:52
@[Harry_Haiyun](/user/977778) 要高精度。uint64 不够 $10^{60}$
by Carroty_cat @ 2023-07-19 09:59:14
```
#include <bits/stdc++.h>
using namespace std;
string a;
int main()
{
int n,i;
cin>>n;
for(int i=1;i<=n;i++) {cin >> a;
int b=a.size();
if ((a[b-1]-'0') % 2==1) cout << "odd\n";
else cout << "even\n";
}
return 0;
}
```
只要最后一位判断就行了
小蒟蒻
by lucky_baizq @ 2023-07-19 10:01:26
@[Carroty_cat](/user/912750)
不用高精啊大哥这才入门题啊
by lucky_baizq @ 2023-07-19 10:02:30
@[wuyuze444](/user/755633) 谁说你这样存不算高精的
by Carroty_cat @ 2023-07-19 10:03:25
@[Carroty_cat](/user/912750)
z这只是一个字符串;
高精是要运算的
那运算le?????
by lucky_baizq @ 2023-07-19 10:05:52
@[Carroty_cat](/user/912750)
但你说高精也没错
只不过太简单了~
by lucky_baizq @ 2023-07-19 10:07:00
@[12345678hzx](/user/670775) @[Carroty_cat](/user/912750) @[wuyuze444](/user/755633) 哈哈,我没想到字符串。
by __Harry_Haiyun__ @ 2023-07-19 10:08:04
@[wuyuze444](/user/755633) 用字符串存不算高精?判断奇偶性难道不是运用了 $2 | 10$ 的十进制特点?
by Carroty_cat @ 2023-07-19 10:08:20
@[Carroty_cat](/user/912750) 这是红题啊,高精板子都是橙
by return_TLE @ 2023-07-19 10:08:24