12 条题解

  • 2
    @ 2026-4-18 14:35:21

    C++:

    #include<bits/stdc++.h>
    using namespace std;
    int a,b,c,d,e,f,g,h,i,j;
    int main(){ 
    	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
      @ 2026-4-19 8:09:01
      #include<bits/stdc++.h>
      using namespace std;
      int cnt;
      
      int main(){
      	for(int i=1;i<=10;i++){
      		long long f;
      		cin>>f;
      		cnt+=f;
      	}
      	cout<<278-cnt;
      }
      
      
      • 0
        @ 2025-12-14 20:28:30

        666

        #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-11-30 12:18:30
          ```cpp
          #include <iostream>
          #include <cstdio>
          using namespace std;
          const int  MAXN = 11;
          int ans[MAXN],sum;
          int main(){
              int a = 278;
              for (int i = 1;i <= 10;i++)    {
                  cin >> ans[i];
                  sum+=ans[i];
              }
              printf("%d",a-sum);
              return 0;
          }
          
          • 0
            @ 2025-11-23 8:41:18
            #include<bits/stdc++.h>
            using namespace std;
            int main()
            {
            	int ans=0;
            	for(int i=1;i<=10;i++)
            	{
            		int s;
            		cin>>s;
            		ans+=s;
            	}
            	cout<<278-ans; 
            	return 0;
            } 
            
            
            • -1
              @ 2025-8-4 11:11:01

              肥肠水的一道题目:

              #include<iostream> 
              #define QwQ return 0;
              using namespace std;
              int total;
              int main(){
              	for(int i=1;i<=10;i++){
              		int x;cin>>x;
              		total+=x;
              	}
              	cout<<278-total;
              	QwQ
              }
              
              • -1
                @ 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;
                }
                
                • -1
                  @ 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; }

                  • -1
                    @ 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; }

                  • -1
                    @ 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;
                    }
                    
                    • @ 2025-8-3 21:02:52

                      其实第2,3行可以不加,加不加没关系

                      #define int long long #define INF 0x3f3f3f

                  • -1
                    @ 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;
                    }
                    

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

                    • -1
                      @ 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
                      难度
                      5
                      标签
                      递交数
                      415
                      已通过
                      159
                      上传者