6 条题解

  • 4
    @ 2022-10-23 20:52:21
    #include <iostream>
    using namespace std;
    int main()
    {
        for(int i = 1; i <= 100; i++)
        {
            cout << i << endl;
        }
        return 0;
    }
    //这道题还是一如既往的简单~~
    
    • 1
      @ 2023-7-31 12:34:43

      简单循环~~

      #include<bits/stdc++.h>
      using namespace std;
      int main(){
      	for(int i=1;i<=100;i++){
      		cout<<i<<endl;
      	}
      	return 0;
      }
      
      • 0
        @ 2023-12-10 10:08:13
        #include <bits/stdc++.h> 
        using namespace std;
        #define ll unsigned long long
        int main(){
            for(ll i=1;i<=100;i++)
            {
                cout<<i<<endl;
            }
            return 0;
        }
        
        • 0
          @ 2023-8-24 15:16:31

          “短”时间解决

          #include <bits/stdc++.h>
          #include <ctime>
          using namespace std;
          void  Delay(long long time)
          {
              clock_t now = clock();
              while (clock() - now < time);
          }
          int main()
          {
              for (int i = 1; i <= 100; i++)
              {
                  cout << i << endl;
              }
              Delay(1000000000000000000);
              return 0;
          }
          

          时间用的不多,也就2067.353136ms

          • 0
            @ 2023-7-29 17:32:10
            #include <bits/stdc++.h>
            using namespace std;
            int main(){
                for (int i = 1; i <= 100; i++) cout << i << "\n";
            }
            
            • 0
              @ 2022-12-16 20:23:04

              简单!!

              #include <iostream>//hetao3097453
              using namespace std;
              int main()
              {
                  for(int i = 1;i <= 100;i++)
                  {
                      cout << i << endl;
                  }
                  return 0;
              }
              
              
              • 1

              【入门】循环输出1~100之间的每个数

              信息

              ID
              877
              时间
              1000ms
              内存
              16MiB
              难度
              1
              标签
              递交数
              329
              已通过
              217
              上传者