uva10494专题

UVa10494不知错哪,求赐教

 错解 #include<iostream> #include<cstring> using namespace std; char b[1000010],d[1000010]; int main() {  freopen("C:\\Users\\John\\Desktop\\hi.txt","r",stdin);  int a,i,j;  char sign;  while(cin>

UVA10494 If We Were a Child Again

yiyi : 看了题目,以为整数只要用int 来存就够了,谁知道交了好几遍都不可以ac,后来把数据改成long类型的才可以,还是不是很懂什么时候会溢出,好坑,不开心!!! “Oooooooooooooooh! If I could do the easy mathematics like my school days!! I can guarantee, that I’d not