前言
Hello大家好,我是文宇.
正文
3011
#include<iostream>
using namespace std;
int main(){
int a,b,s;
a=880;
b=500;
s=a*b;
cout<<s;
return 0;
}
注:没有输入的都可以直接输出.
3012
#include<iostream>
using namespace std;
int a,b,t;
int main(){
a=10;b=20;
t=a;
a=b;
b=t;
cout<<"a=10 b=20"<<endl<<"a="<<a<<" b="<<b;
return 0;
}
3013
#include<iostream>
using namespace std;
int a,b,t;
int main(){
a=1;
b=5;
t=a*b;
cout<<t;
return 0;
}
3014
#include<iostream>
using namespace std;
int a,b,t;
int main(){
a=100;
b=a+1;
t=a+2;
cout<<a<<endl<<b<<endl<<t;
return 0;
}
3015
#include<bits/stdc++.h>
using namespace std;
int main(){
cout<<(15*20-20*10)/(20-10)<<endl;
return 0;
}
标签:std,cout,int,题解,3011,namespace,奥赛,using,main
From: https://blog.csdn.net/2401_84159494/article/details/141161289