6 条题解

  • 0
    @ 2025-6-15 11:17:52
    #include<bits/stdc++.h>
    #define int long long
    using namespace std;
    signed main() 
    {
    	int sum=0;
    	for(int i=1;i<=10;i++)
    	{
    		int t;
    		cin>>t;
    		sum+=t;
    	}
    	cout<<278-sum;
    }
    
    • 0
      @ 2025-5-25 18:02:31

      #include<bits/stdc++.h> using namespace std; int main(){ int q,w,e,r,t,y,u,i,o,p,a; cin>>q>>w>>e>>r>>t>>y>>u>>i>>o>>p; a=(278-q-w-e-r-t-y-u-i-o-p); cout<<a; return 0; }

      • 0
        @ 2024-12-28 11:22:32
        #include<bits/stdc++.h>
        using namespace std;
        int n,ans;
        signed main(){
        	for(int i=1;i<=10;i++){
        		cin>>n;
        		ans+=n;
        	}
        	cout<<278-ans;
        }
        
        • @ 2025-5-25 18:02:22

          没必要这么复杂吧! 看看我的: #include<bits/stdc++.h> using namespace std; int main(){ int q,w,e,r,t,y,u,i,o,p,a; cin>>q>>w>>e>>r>>t>>y>>u>>i>>o>>p; a=(278-q-w-e-r-t-y-u-i-o-p); cout<<a; return 0; }

      • 0
        @ 2024-12-27 21:20:15

        虽然比李宥锦多了两行,但是还是比较容易实现的。题目太水了。

        #include<bits/stdc++.h>
        #define int long long
        #define INF 0x3f3f3f
        using namespace std;
        int x,ans;
        signed main(){
        	for(int i=1;i<=10;i++)
        		cin>>x,ans+=x;
        	cout<<278-ans;
        	return 0;
        }
        
        • 0
          @ 2024-12-23 21:36:41

          暴力打法:

          #include<bits/stdc++.h>
          using namespace std;
          int main()
          {
          	int a,b,c,d,e,f,g,h,i,j;
          	cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j;
          	cout<<278-a-b-c-d-e-f-g-h-i-j;
          	return 0;
          }
          

          你懂的,它要几个班我开几个变量(就是头铁~ 怎么滴~)。

          • 0
            @ 2024-12-22 11:03:53

            C++ :

            #include <bits/stdc++.h>
            using namespace std;
            int n,s=0;
            int main(){
            	for(int i=1;i<=10;i++){
            		cin>>n;
            		s+=n;
            	}
            	cout<<278-s;
            	return 0;
            }
            

            Python :

            # coding=utf-8
            a, b, c, d, e, f, g, h, i, j = input().split()
            a = int (a)
            b = int (b)
            c = int (c)
            d = int (d)
            e = int (e)
            f = int (f)
            g = int (g)
            h = int (h)
            i = int (i)
            j = int (j)
            x = (a + b + c + d + e + f + g + h + i + j)
            n = x
            print (278 - n)
            
            • 1

            信息

            ID
            13
            时间
            1000ms
            内存
            128MiB
            难度
            1
            标签
            (无)
            递交数
            47
            已通过
            38
            上传者