5 条题解

  • 0
    @ 2024-4-13 10:16:35

    #include using namespace std; int main(){ int m,n,p=0; scanf("%d%d",&n,&m); while(n<=m) {

    p=p+n; 
        n++;
    
    }
    	printf("%d",p);
    return 0;
    

    }

    • 0
      @ 2024-4-13 10:16:31

      #include using namespace std; int main(){ int m,n,p=0; scanf("%d%d",&n,&m); while(n<=m) {

      p=p+n; 
          n++;
      
      }
      	printf("%d",p);
      return 0;
      

      }

      • 0
        @ 2024-4-13 10:16:29

        #include using namespace std; int main(){ int m,n,p=0; scanf("%d%d",&n,&m); while(n<=m) {

        p=p+n; 
            n++;
        
        }
        	printf("%d",p);
        return 0;
        

        }

        • 0
          @ 2024-4-13 10:16:26

          #include using namespace std; int main(){ int m,n,p=0; scanf("%d%d",&n,&m); while(n<=m) {

          p=p+n; 
              n++;
          
          }
          	printf("%d",p);
          return 0;
          

          }

          • 0
            @ 2024-4-13 10:09:22

            #include using namespace std; int main(){ int m,n,p=0; scanf("%d%d",&n,&m); while(n<=m) {

            p=p+n; 
                n++;
            
            }
            	printf("%d",p);
            return 0;
            

            }

            • 1

            信息

            ID
            910
            时间
            1000ms
            内存
            256MiB
            难度
            8
            标签
            递交数
            16
            已通过
            6
            上传者