zoukankan      html  css  js  c++  java
  • 致我们曾经刷过的水题

    ummmm...8年级的同学来gryz参加夏令营了。感觉自己老得好快...在此整理一下本人刷过的那些道水题...希望以后能有什么用吧(怎么可能233333)。

    统计:

    Openjudge: 累计153题。

    CodeVS: 累计66题。

    洛谷: 累计162题。

    COGS: 累计5题。

    去重前累计375题。

    ......待续......

    Openjudge:

      1.1(大概没人需要吧):

    /* http://noi.openjudge.cn/ch0101/01/ */
    #include<iostream>
    using namespace std;
    int main()
    {
        cout<<"Hello, World!";
        return 0;
    }
    
    /* http://noi.openjudge.cn/ch0101/02/ */
    #include<iostream>
    using namespace std;
    int main()
    {
        int a,b,c;
        cin>>a>>b>>c;
        cout<<b;
        return 0;
    }
    
    /* http://noi.openjudge.cn/ch0101/03/ */
    #include<cstdio>
    int main()
    {
        int a,b,c;
        scanf("%d%d%d",&a,&b,&c);
        printf("%8d %8d %8d",a,b,c);
        return 0;
    }
    
    /* http://noi.openjudge.cn/ch0101/04/ */
    #include<cstdio>
    using namespace std;
    double a;
    int main()
    {
        scanf("%lf",&a);
        printf("%.3lf",a);
        return 0;
    }
    
    /* http://noi.openjudge.cn/ch0101/05/ */
    #include<cstdio>
    using namespace std;
    double a;
    int main()
    {
        scanf("%lf",&a);
        printf("%.12lf",a);
        return 0;
    }
    
    /* http://noi.openjudge.cn/ch0101/06/ */
    #include<cstdio>
    using namespace std;
    char c;int d;float f;double lf;
    int main()
    {
        scanf("%c",&c);
        scanf("%d",&d);
        scanf("%f",&f);
        scanf("%lf",&lf);
        printf("%c %d %.6f %.6lf",c,d,f,lf);
        return 0;
    }
    
    /* http://noi.openjudge.cn/ch0101/07/ */
    #include<cstdio>
    using namespace std;
    int main()
    {
        double a;
        scanf("%lf",&a);
        printf("%f
    %.5f
    %e
    %g",a,a,a,a);
        return 0;
    }
    
    /* http://noi.openjudge.cn/ch0101/08/ */
    #include<iostream>
    using namespace std;
    int main()
    {
        char ch;
        cin>>ch;
        cout<<"  "<<ch<<endl;
        cout<<" "<<ch<<ch<<ch<<endl;
        cout<<ch<<ch<<ch<<ch<<ch;
        return 0;
    }
    
    /* http://noi.openjudge.cn/ch0101/09/ */
    #include<iostream>
    using namespace std;
    int main()
    {
        char ch;
        cin>>ch;
        cout<<"  "<<ch<<endl;
        cout<<" "<<ch<<ch<<ch<<endl;
        cout<<ch<<ch<<ch<<ch<<ch<<endl;
        cout<<" "<<ch<<ch<<ch<<endl;
        cout<<"  "<<ch<<endl;
        return 0;
    }
    
    /* http://noi.openjudge.cn/ch0101/10/ */
    #include<iostream>
    using namespace std;
    int main()
    {
        cout<<"                ********
    "
             <<"               ************
    "
            <<"               ####....#.
    "
            <<"             #..###.....##....
    "
            <<"             ###.......######              ###                 ###           ###           ###
    "
            <<"                ...........               #...#               #...#         #...#         #...#
    "
            <<"               ##*#######                 #.#.#               #.#.#         #.#.#         #.#.#
    "
            <<"            ####*******######             #.#.#               #.#.#         #.#.#         #.#.#
    "
            <<"           ...#***.****.*###....          #...#               #...#         #...#         #...#
    "
            <<"           ....**********##.....           ###                 ###           ###           ###
    "
            <<"           ....****    *****....
    "
            <<"             ####        ####
    "
            <<"           ######        ######
    "
            <<"##############################################################              ##################################
    "
            <<"#...#......#.##...#......#.##...#......#.##------------------#              #...#......#.##------------------#
    "
            <<"###########################################------------------#              ###############------------------#
    "
            <<"#..#....#....##..#....#....##..#....#....#####################              #..#....#....#####################
    "
            <<"##########################################    #----------#                  ##############    #----------#
    "
            <<"#.....#......##.....#......##.....#......#    #----------#                  #.....#......#    #----------#
    "
            <<"##########################################    #----------#                  ##############    #----------#
    "
            <<"#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#                  #.#..#....#..#    #----------#
    "
            <<"##########################################    ############                  ##############    ############";
        return 0;
    }
    View Code

     ......待续......

  • 相关阅读:
    多视点视频的分类和技术标准
    判断任意控制台输入十进制数是否为水仙花数(C++)
    mysql创建新用户并授权限
    Linux下使用sqlplus查询数据时乱行显示问题
    读Strarling有感
    Starling性能优化技巧
    如何在Django Rest Framework中过滤嵌套的序列化器?
    sql 高级教程
    小技巧字符串比较
    WPF MVVM DataGrid数据直更新
  • 原文地址:https://www.cnblogs.com/TheRoadToAu/p/7142728.html
Copyright © 2011-2022 走看看