镇乃天子
镇乃天子
This commit is contained in:
18
666/02.2.0.cpp
Normal file
18
666/02.2.0.cpp
Normal 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
BIN
666/02.2.1
Normal file
Binary file not shown.
16
666/02.2.2.cpp
Normal file
16
666/02.2.2.cpp
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user