3 条题解

  • 2
    @ 2025-9-7 10:17:33
    using namespace std;
    int n,m,me;
    int main(){
    	cin>>n>>m>>me;
    	if(me==1) cout<<(n+m+13)/2;
    	else cout<<(n+m-13)/2;
    }
    
    • 2
      @ 2025-7-4 9:16:52

      #include<bits/stdc++.h> using namespace std; int main() { int f,m,n; cin>>f>>m>>n; if(n==1)cout<<(f+m+13)/2; else cout<<(f+m-13)/2;

      return 0;

      }

      • 1
        @ 2026-1-10 15:44:50
        #include<bits/stdc++.h>
        using namespace std;
        int x,y,z;
        int main(){
            cin>>x>>y>>z;
            if(z==1) cout<<(x+y+13)/2;
            else cout<<(x+y-13)/2;
            return 0;
        }
        
        • 1

        信息

        ID
        297
        时间
        1000ms
        内存
        256MiB
        难度
        9
        标签
        (无)
        递交数
        10
        已通过
        9
        上传者