版本比较
题解:UVA12802 Gift From the Gods
正文
增加 1 行删除 1 行
55 行未改动56575859606162636416 行未改动55 行未改动while (scanf("%d", &x) != EOF) { // 循环读入if (!flag)continue; // 如果已经输出了一个回文质数,那就不用理会输入了printf("%d\n", x * 2); // 先输出再说str_reverse = str = to_string(x);reverse(str_reverse.begin(), str_reverse.end());16 行未改动55 行未改动56575859606162636416 行未改动55 行未改动while (scanf("%d", &x) != EOF) { // 循环读入if (!flag)continue; // 如果已经输出了一个回文质数,那就不用理会输入了printf("%d\n", x * 2); // 先输出再说str_reverse = str = to_string(x);reverse(str_reverse.begin(), str_reverse.end());16 行未改动