WA,WA,WA
查看原帖
WA,WA,WA
1199910
luzhuohan楼主2024/7/17 18:26

AC最后一个测试点

#include <iostream>

using namespace std;

int a,b;

void su(int x){
    int ge = x % 10;
    int shi = x % 10 / 10;
    if(x == (10*ge+shi)){
        cout << x << endl;
    }
}

int main(){
    cin >> a >> b;
    
    for(int i = a;i < b;i++){
        su(i);   
    }
	return 0;
}
2024/7/17 18:26
加载中...