Update: Rename folder name to XSMOJ

This commit is contained in:
2025-02-14 02:44:20 +00:00
parent 394e431a4a
commit c8863a5850
243 changed files with 11 additions and 39 deletions

26
XSMOJ/数字翻转.cpp Normal file
View File

@ -0,0 +1,26 @@
#include <iostream>
#include <iomanip>
#include <cstring>
#include <cstdio>
#include <ctime>
#include <cmath>
using namespace std;
int main(){
int a,b,c=0,d=0;
scanf("%d%d",&a,&b);
while(a){
c=c*10+a%10;
a/=10;
}
while(b){
d=d*10+b%10;
b/=10;
}
if(c>d){
printf("%d",c);
}
if(d>c){
printf("%d",d);
}
return 0;
}