7 solutions

  • 3
    @ 2024-1-25 9:02:11
    #include<bits/stdc++.h>
    using namespace std;
    int a,b,c;
    int main(){
    	cin>>a>>b>>c;
    	cout<<(a+b)/c<<"\n";
    	return 0;
    }
    
    • 1
      @ 2024-7-9 19:26:02
      #include<iostream>
      using namespace std;
      int main(){
      	int a,b,c;
      	cin>>a>>b>>c;
      	cout<<(a+b)/c;
      	return 0;
      }
      
      • 1
        @ 2023-11-22 16:34:43
        #include <bits/stdc++.h>
        using namespace std;
        int main(int argc, char **argv){
        	int a,b,c;
        	cin >> a >> b >> c;
        	printf("%d",(a + b) / c);
        	return 0;
        }
        
        • 1
          @ 2023-10-30 16:46:15
          #include <iostream>
          #include <cstdio>
          #include <iomanip>
          #include <cmath>
          using namespace std;
          int main(){
          	int a , b , c;
          	cin >> a >> b >> c;
          	double r;
          	r = (1.0 * a) + b;
          	r = r / c;
          	cout << int(r) << endl;
          	return 0;
          }
          
          
          • 0
            @ 2024-10-21 15:25:22
            #define dayuhao <
            #define xiaoyuhao >
            #define wannengtouwenjian bits/stdc++.h
            #define jiajia ++
            #define jiadengyu +=
            #define jia +
            #define jian -
            #define cheng *
            #define chuyi /
            #define shuchu cout
            #define fanhui return
            #define false true
            #define true false
            #define dingyi int
            #define shuru cin
            #define xiaoyudengyu <=
            #define dengyu =
            #define dingyipanduanleizifuchuang bool
            #define kaishi {
            #define jieshu }
            #define qiankuohao (
            #define fenhao ;
            #define shurufuhao >>
            #define shuchufuhao <<
            #define ling 0
            #define yi 1
            #define xunhuan for
            #define douhao ,
            #define zheng true
            #define ruguo if
            #define houkuohao )
            #define shiyong using
            #define mingmingkongjian namespace
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            #include dayuhao wannengtouwenjian xiaoyuhao
            shiyong mingmingkongjian std fenhao
            dingyipanduanleizifuchuang o qiankuohao dingyi p houkuohao kaishi
            	fanhui zheng fenhao
            jieshu
            dingyi main qiankuohao houkuohao kaishi
            	dingyi a douhao b douhao c fenhao
            	shuru shurufuhao a shurufuhao b shurufuhao c fenhao
            	shuchu shuchufuhao qiankuohao a jia b houkuohao chuyi c fenhao
            	fanhui ling fenhao
            jieshu
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            // 抽象代码
            
            • 0
              @ 2023-11-24 21:28:13
              #include<iostream>
              using namespace std;
              int main(){
                  int a,b,c,d;
                  cin>>a>>b>>c;
                  d=(a+b)/c;
                  cout<<d;
                  return 0;
              }
              
              • -2
                @ 2023-9-16 16:58:41
                1. #include
                2. using namespace std;
                3. int main(){
                4. int a, b,c;
                5. double d;
                6. cin>>a>>b>>c;
                7. d=(a+b)/c;
                8. printf("%.0f",d);
                9. return 0;
                10. }
                • 1

                Information

                ID
                494
                Time
                1000ms
                Memory
                256MiB
                Difficulty
                1
                Tags
                # Submissions
                171
                Accepted
                120
                Uploaded By