您的位置:首页 > 编程语言

[NOI题库]1.1编程基础之输入输出 题解

2015-09-22 20:51 274 查看
今年NOIP居然"各有两道题目从NOI题库中抽取并在原题基础上改动后使用",不好好刷题怎么行。

01 Hello, World!

根据题意直接输出 "Hello, World!" 即可。

#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;
cout<<"           ....**********##.....           ###                 ###           ###           ###"<<endl;
cout<<"           ....****    *****...."<<endl;
cout<<"             ####        ####"<<endl;
cout<<"           ######        ######"<<endl;
cout<<"##############################################################              ##################################"<<endl;
cout<<"#...#......#.##...#......#.##...#......#.##------------------#              #...#......#.##------------------#"<<endl;
cout<<"###########################################------------------#              ###############------------------#"<<endl;
cout<<"#..#....#....##..#....#....##..#....#....#####################              #..#....#....#####################"<<endl;
cout<<"##########################################    #----------#                  ##############    #----------#"<<endl;
cout<<"#.....#......##.....#......##.....#......#    #----------#                  #.....#......#    #----------#"<<endl;
cout<<"##########################################    #----------#                  ##############    #----------#"<<endl;
cout<<"#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#                  #.#..#....#..#    #----------#"<<endl;
cout<<"##########################################    ############                  ##############    ############"<<endl;
return 0;
}


10.cpp
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: