更新了许多

This commit is contained in:
OhFengGO
2023-08-23 21:52:51 +08:00
parent 971a1d91d6
commit fc324f936b
197 changed files with 6500 additions and 0 deletions

26
数字翻转.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;
}