每周发oj,topscoding题解

35 篇文章 0 订阅

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

那么┏ (゜ω゜)=☞

先从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;
}

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值