最近好闲无事可做就觉得得搞事情就开(我觉得能开一个小学生暑假吧)求各位支持ヾ(◍°∇°◍)ノ゙
那么┏ (゜ω゜)=☞
先从topscoding ————>go
1.顺序结构
我将会已以下方式写
/*题号 编程类型
程序*/
1000 c++14
代码:(可以加iOS)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<a+b;
}
1061 c++14
代码:(可以加iOS)后面不写了!
#include<bits/stdc++.h>
using namespace std;
int main()
{
float a,b;
cin>>a>>b;
cout<<fixed<<setprecision(2)<<a+b;
}
1067 c++14
代码:
#include <bits/stdc++.h>
using namespace std;
int main()
{
cout<<"**************************"<<endl;
cout<<endl;
cout<<" Very Good!"<<endl;
cout<<"**************************"<<endl;
}
/*
#include <bits/stdc++.H>
using namespace std;
int main()
{
cout<<"**************************"<<endl<<endl<<" Very Good!"<<endl<<"**************************"<<endl;
}*/
1070 c++14
#include<bits/stdc++.h>
using namespace std;
int main()
{
float a,b,h,s;
cin>>h;
cin>>a>>b;
s=(a+b)*h*0.5;
cout<<fixed<<setprecision(2)<<s;
}
1213 c++14
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
1217 c++14
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<"Hello, World!";
}
1219 c++14
#include <bits/stdc++.h>
using namespace std;
int main()
{
cout << "Hello," << endl;cout << "World." << endl;
return 0;
}
1223 c++14
/*
*
**
***
****
*/
#include <iostream>
using namespace std;
int main()
{
cout<<"*" << endl;
cout<<"**"<<endl;
cout<<"***"<<endl;
cout<<"****"<<endl;
return 0;
}
1225 c++14
/*
author: topscoding
p = 1000
you can add some comments here.
*/
#include <iostream>
using namespace std;
int main()
{
cout << " *"<< endl;
cout << " * *"<< endl;
cout << "* *"<< endl;
cout << " * *"<< endl;
cout << " *"<< endl;
return 0;
}
1229 c++14
/*
author: topscoding
p = 1000
you can add some comments here.
*/
#include <iostream>
using namespace std;
int main()
{
cout << " *" << endl;
cout <<" *"<< endl;
cout <<" *"<< endl;
cout <<"* *"<< endl;
cout<<" * *"<< endl;
cout<<" *"<< endl;
return 0;
}
1232 c++14
/*
author: topscoding
p = 1000
you can add some comments here.
*/
#include <iostream>
using namespace std;
int main()
{
cout << "A" << endl;
cout << "BC" << endl;
cout << "DEF" << endl;
cout << "GHIJ" << endl;
cout << "KLMNO" << endl;
cout << "PQRSTU" << endl;
cout << "V" << endl;
cout << "W" << endl;
cout << "X" << endl;
cout << "Y" << endl;
cout << "Z" << endl;
return 0;
}
1233 c++14
/*
author: topscoding
p = 1000
you can add some comments here.
*/
#include <iostream>
using namespace std;
int main()
{
cout <<" *" << endl;
cout << " **" << endl;
cout << "* ***" << endl;
cout << "** ****" << endl;
cout << "**************" << endl;
cout << "** ****" << endl;
cout << "* ***" << endl;
cout << " **" << endl;
cout << " *" << endl;
return 0;
}
1234 c++14
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<"abcdefghijklm"<<endl;
cout<<"nopqrstuvwxyz"<<endl;
cout<<"zyxwvutsrqpon"<<endl;
cout<<"mlkjihgfedcba"<<endl;
}
1235 c++14
/*
author: topscoding
p = 1000
you can add some comments here.
*/
#include <iostream>
using namespace std;
int main()
{
cout << "A" << endl;
cout << "I*" << endl;
cout << "I**" << endl;
cout << "I***" << endl;
cout << "I****" << endl;
cout << "I*****" << endl;
cout << "I" << endl;
cout << "I" << endl;
cout << "I" << endl;
cout << "I" << endl;
return 0;
}