每周发oj,topscoding题解

最近好闲无事可做就觉得得搞事情就(我觉得能开一个小学生暑假吧)求各位支持ヾ(◍°∇°◍)ノ゙

那么┏ (゜ω゜)=☞

先从topscoding ————>go

1.顺序结构

我将会已以下方式写

/*题号 编程类型

程序*/

1000 c++14

代码:(可以加iOS)

#include
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	cout<

1061 c++14

代码:(可以加iOS)后面不写了!

#include
using namespace std;
int main()
{
    float a,b;
	cin>>a>>b;
	cout<

 1067 c++14

代码:


#include 
using namespace std;

int main()
{
   cout<<"**************************"<
using namespace std;

int main()
{
   cout<<"**************************"<

1070 c++14 

#include
using namespace std;
int main()
{
	float a,b,h,s;
	cin>>h;
	cin>>a>>b;
	s=(a+b)*h*0.5;
	cout<

1213 c++14

#include
using namespace std;

int main()
{
    cout << "Hello World!" << endl;
    return 0;
}

1217 c++14

#include
using namespace std;
int main()
{
	cout<<"Hello, World!";                                   
}

1219 c++14


#include 
using namespace std;

int main()
{
    cout << "Hello," << endl;cout << "World." << endl;


    return 0;
}

1223 c++14

/*
*
**
***
****

*/
#include 
using namespace std;

int main()
{
    cout<<"*" << endl;
	cout<<"**"<

1225 c++14

/*
 author: topscoding
 p = 1000
 you can add some comments here.
*/
#include 
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 
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 
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 
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
using namespace std;

int main()
{
cout<<"abcdefghijklm"<

1235 c++14

/*
 author: topscoding
 p = 1000
 you can add some comments here.
*/
#include 
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;
}

你可能感兴趣的:(C++,作业,c++,Mark1277,算法)