#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {
int Max = 2147483647;
char str_1[10001], str_2[10001], op;
while (scanf("%s %c %s", str_1, &op, str_2) != EOF) {
printf("%s %c %s\n", str_1, op, str_2);
if (atof(str_1) > Max)
printf("first number too big\n");
if (atof(str_2) > Max)
printf("second number too big\n");
if ( (op == '+' && atof(str_1) + atof(str_2) > Max) || (op == '*' && atof(str_1) * atof(str_2) > Max))
printf("result too big\n");
}
return 0;
}
暑假-高精度