镇乃天子
This commit is contained in:
23
666/02.cpp
23
666/02.cpp
@@ -1,12 +1,15 @@
|
|||||||
#include<iostream>
|
#include<iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
int main(){
|
int main(){
|
||||||
int a,b;
|
|
||||||
cin>>a>>b;
|
|
||||||
if(a>b)
|
|
||||||
cout<<a<<"大大大大大大大大大大大大大大大大大大大大大大大大大"<<endl;
|
|
||||||
else;
|
|
||||||
cout<<b<<"大大大大大大大大大大大大大大大大大大大大大大大大大"<<endl;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
|
int zuidazhi
|
||||||
|
int a[5];
|
||||||
|
int man=a[0];
|
||||||
|
for(int i=0;i<4;i++){
|
||||||
|
if(a[i]>man)
|
||||||
|
man=a[i];
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
666/冒泡排序函数版
Normal file
BIN
666/冒泡排序函数版
Normal file
Binary file not shown.
16
666/最大值.cpp
Normal file
16
666/最大值.cpp
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int mymax(int x_int,int y_int){
|
||||||
|
if(x_int>y_int)
|
||||||
|
return x_int;
|
||||||
|
else;
|
||||||
|
return y_int;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(){
|
||||||
|
int i,j;
|
||||||
|
cin>>i>>j;
|
||||||
|
cout<<mymax(i,j)<<endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user