这次我专门找了几道超级水的水题!(如Hello world)不细讲,就贴个代码!
首先先看一下是哪几道(共10道,算多的):
OK,开始正文!(由于题目太多,我就不放题目了,需要的可以点进去看看)
第1道:
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long a,b;
cin >> a >> b;
cout<<a+b;
return 0;
}
第2道:
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<"Hello,World!";
return 0;
}
第3道:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin >> a >> b >> c;
cout<<b;
return 0;
}
第4道:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin >> a >> b >> c;
printf("%8d %8d %8d",a,b,c);
return 0;
}
第5道:
#include<bits/stdc++.h>
using namespace std;
int main()
{
char c;
cin >> c;
cout<<" "<<c<<endl<<" "<<c<<c<<c<<endl<<c<<c<<c<<c<<c;
return 0;
}
第6道:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin >> a >> b;
cout<<a+b;
return 0;
}
第7道:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin >> a >> b >> c;
cout<<(a+b)*c;
return 0;
}
第8道:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin >> a >> b >> c;
cout<<(a+b)/c;
return 0;
}
第9道:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin >> a >> b;
cout<<a/b<<" "<<a%b;
return 0;
}
第10道:
#include<bits/stdc++.h>
using namespace std;
int main()
{
double a,b;
cin >> a >> b;
printf("%.9lf",a/b);
return 0;
}
这篇博客就到这里啦(之后如果有水题的话,我应该也会这样的),我们下篇再见!