11 条题解

  • 4
    @ 2025-1-25 11:46:46

    C++14 黑科技 Raw String:可以直接把原始字符串不经任何处理直接输出。语法:R"(字符串)"

    代码:

    #include<bits/stdc++.h>
    using namespace std;
    #define int long long
    string s=R"(                ********
                   ************
                   ####....#.
                 #..###.....##....
                 ###.......######              ###            ###
                    ...........               #...#          #...#
                   ##*#######                 #.#.#          #.#.#
                ####*******######             #.#.#          #.#.#
               ...#***.****.*###....          #...#          #...#
               ....**********##.....           ###            ###
               ....****    *****....
                 ####        ####
               ######        ######
    ##############################################################
    #...#......#.##...#......#.##...#......#.##------------------#
    ###########################################------------------#
    #..#....#....##..#....#....##..#....#....#####################
    ##########################################    #----------#
    #.....#......##.....#......##.....#......#    #----------#
    ##########################################    #----------#
    #.#..#....#..##.#..#....#..##.#..#....#..#    #----------#
    ##########################################    ############
    )";
    signed main(){
        cout<<s;
        return 0;
    }
    
    • -1
      @ 2025-3-15 21:58:45

      cout硬凑。

      using namespace std;
      
      int main(){
      	cout<<"                ********\n               ************\n               ####....#.\n             #..###.....##....\n             ###.......######              ###            ###\n                ...........               #...#          #...#\n               ##*#######                 #.#.#          #.#.#\n            ####*******######             #.#.#          #.#.#\n           ...#***.****.*###....          #...#          #...#\n           ....**********##.....           ###            ###\n           ....****    *****....\n             ####        ####\n           ######        ######\n##############################################################\n#...#......#.##...#......#.##...#......#.##------------------#\n###########################################------------------#\n#..#....#....##..#....#....##..#....#....#####################\n##########################################    #----------#\n#.....#......##.....#......##.....#......#    #----------#\n##########################################    #----------#\n#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#\n##########################################    ############";
      }
      
      
      • -2
        @ 2025-1-15 13:16:19

        直接输出即可。

        • -2
          @ 2024-12-31 19:08:59
          #include<bits/stdc++.h>
          
          int main() {
              printf(
              "                ********\n"
              "               ************\n"
              "               ####....#.\n"
              "             #..###.....##....\n"
              "             ###.......######              ###            ###\n"
              "                ...........               #...#          #...#\n"
              "               ##*#######                 #.#.#          #.#.#\n"
              "            ####*******######             #.#.#          #.#.#\n"
              "           ...#***.****.*###....          #...#          #...#\n"
              "           ....**********##.....           ###            ###\n"
              "           ....****    *****....\n"
              "             ####        ####\n"
              "           ######        ######\n"
              "##############################################################\n"
              "#...#......#.##...#......#.##...#......#.##------------------#\n"
              "###########################################------------------#\n"
              "#..#....#....##..#....#....##..#....#....#####################\n"
              "##########################################    #----------#\n"
              "#.....#......##.....#......##.....#......#    #----------#\n"
              "##########################################    #----------#\n"
              "#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#\n"
              "##########################################    ############\n"
              );
              return 0;
          }
          
          • -3
            @ 2025-1-15 11:02:30

            纯练习cout。很费时间。

            #include<iostream>
            using namespace std;
            int main(){
              cout<<R"(                ********
                           ************
                           ####....#.
                         #..###.....##....
                         ###.......######              ###            ###
                            ...........               #...#          #...#
                           ##*#######                 #.#.#          #.#.#
                        ####*******######             #.#.#          #.#.#
                       ...#***.****.*###....          #...#          #...#
                       ....**********##.....           ###            ###
                       ....****    *****....
                         ####        ####
                       ######        ######
            ##############################################################
            #...#......#.##...#......#.##...#......#.##------------------#
            ###########################################------------------#
            #..#....#....##..#....#....##..#....#....#####################
            ##########################################    #----------#
            #.....#......##.....#......##.....#......#    #----------#
            ##########################################    #----------#
            #.#..#....#..##.#..#....#..##.#..#....#..#    #----------#
            ##########################################    ############
            )";
              return 0;
            }
            
            
            • -3
              @ 2025-1-12 17:33:32

              #include <bits/stdc++.h> using namespace std; #define p puts int main() { p(" ********"); p(" "); p(" ####....#."); p(" #..###.....##...."); p(" ###.......###### ### ###"); p(" ........... #...# #...#"); p(" ######### #.#.# #.#.#"); p(" ########## #.#.# #.#.#"); p(" ...#..###.... #...# #...#"); p(" ....****##..... ### ###"); p(" .... *****...."); p(" #### ####"); p(" ###### ######"); p("##############################################################"); p("#...#......#.##...#......#.##...#......#.##------------------#"); p("###########################################------------------#"); p("#..#....#....##..#....#....##..#....#....#####################"); p("########################################## #----------#"); p("#.....#......##.....#......##.....#......# #----------#"); p("########################################## #----------#"); p("#.#..#....#..##.#..#....#..##.#..#....#..# #----------#"); p("########################################## ############"); }

              • -3
                @ 2025-1-11 10:09:40

                在Hydro,享受copy的欢乐

                #include<iostream>
                int main(){
                  std::cout<<R"(                ********
                               ************
                               ####....#.
                             #..###.....##....
                             ###.......######              ###            ###
                                ...........               #...#          #...#
                               ##*#######                 #.#.#          #.#.#
                            ####*******######             #.#.#          #.#.#
                           ...#***.****.*###....          #...#          #...#
                           ....**********##.....           ###            ###
                           ....****    *****....
                             ####        ####
                           ######        ######
                ##############################################################
                #...#......#.##...#......#.##...#......#.##------------------#
                ###########################################------------------#
                #..#....#....##..#....#....##..#....#....#####################
                ##########################################    #----------#
                #.....#......##.....#......##.....#......#    #----------#
                ##########################################    #----------#
                #.#..#....#..##.#..#....#..##.#..#....#..#    #----------#
                ##########################################    ############
                )";
                  return 0;
                }
                
                • -3
                  @ 2024-12-24 18:27:02

                  水题,就是费时间(
                  为了拯救大家的时间,直接复制粘贴这个吧))

                  #include <bits/stdc++.h>
                  using namespace std;
                  #define p puts
                  int main()
                  {
                      p("                ********");
                      p("               ************");
                      p("               ####....#.");
                      p("             #..###.....##....");
                      p("             ###.......######              ###            ###");
                      p("                ...........               #...#          #...#");
                      p("               ##*#######                 #.#.#          #.#.#");
                      p("            ####*******######             #.#.#          #.#.#");
                      p("           ...#***.****.*###....          #...#          #...#");
                      p("           ....**********##.....           ###            ###");
                      p("           ....****    *****....");
                      p("             ####        ####");
                      p("           ######        ######");
                      p("##############################################################");
                      p("#...#......#.##...#......#.##...#......#.##------------------#");
                      p("###########################################------------------#");
                      p("#..#....#....##..#....#....##..#....#....#####################");
                      p("##########################################    #----------#");
                      p("#.....#......##.....#......##.....#......#    #----------#");
                      p("##########################################    #----------#");
                      p("#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#");
                      p("##########################################    ############");
                  }
                  
                • -4
                  @ 2024-12-26 21:25:19
                  #include <cstdio>
                  
                  int main()
                  {
                      puts("                ********");
                      puts("               ************");
                      puts("               ####....#.");
                      puts("             #..###.....##....");
                      puts("             ###.......######              ###            ###");
                      puts("                ...........               #...#          #...#");
                      puts("               ##*#######                 #.#.#          #.#.#");
                      puts("            ####*******######             #.#.#          #.#.#");
                      puts("           ...#***.****.*###....          #...#          #...#");
                      puts("           ....**********##.....           ###            ###");
                      puts("           ....****    *****....");
                      puts("             ####        ####");
                      puts("           ######        ######");
                      puts("##############################################################");
                      puts("#...#......#.##...#......#.##...#......#.##------------------#");
                      puts("###########################################------------------#");
                      puts("#..#....#....##..#....#....##..#....#....#####################");
                      puts("##########################################    #----------#");
                      puts("#.....#......##.....#......##.....#......#    #----------#");
                      puts("##########################################    #----------#");
                      puts("#.#..#....#..##.#..#....#..##.#..#....#..#    #----------#");
                      puts("##########################################    ############");
                      return 0;
                  }
                  
                  
                  • -4

                    #include<bits/stdc++.h> 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; }

                    • -5
                      @ 2024-12-15 10:29:24

                                 ************
                                 ####....#.
                               #..###.....##....
                               ###.......######              ###            ###
                                  ...........               #...#          #...#
                                 ##*#######                 #.#.#          #.#.#
                              ####*******######             #.#.#          #.#.#
                             ...#***.****.*###....          #...#          #...#
                             ....**********##.....           ###            ###
                             ....****    *****....
                               ####        ####
                             ######        ######
                      

                      ############################################################## #...#......#.##...#......#.##...#......#.##------------------# ###########################################------------------# #..#....#....##..#....#....##..#....#....##################### ########################################## #----------# #.....#......##.....#......##.....#......# #----------# ########################################## #----------# #.#..#....#..##.#..#....#..##.#..#....#..# #----------# ########################################## ############

                      • 1

                      信息

                      ID
                      5058
                      时间
                      1000ms
                      内存
                      128MiB
                      难度
                      1
                      标签
                      递交数
                      2330
                      已通过
                      850
                      上传者