镇乃天子

镇乃天子
This commit is contained in:
2026-03-28 05:34:35 -04:00
parent dbca0f836c
commit 17ac063f22
3 changed files with 34 additions and 0 deletions

18
666/02.2.0.cpp Normal file
View File

@@ -0,0 +1,18 @@
#include<iostream>
using namespace std;
void bjdx(int a,int b){
if(a>b)
cout<<a<<"大大大大大大大大大大大大大大大大大大大大大大大大大"<<endl;
else
cout<<b<<"大大大大大大大大大大大大大大大大大大大大大大大大大"<<endl;
}
int main(){
int a,b;
cin>>a>>b;
bjdx(a,b);
return 0;
}

BIN
666/02.2.1 Normal file

Binary file not shown.

16
666/02.2.2.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include<iostream>
using namespace std;
int bjdx(int a){
int b=1;
for(int i=1;i<=a;i++)
b=b*i;
return b;
}
int main(){
int pdd;
cin>>pdd;
cout<<bjdx(pdd)<<endl;
return 0;
}