8 solutions

  • 1
    @ 2026-3-8 14:48:07
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int x,y;
        cin>>x>>y;
        if (x==y){
        	cout<<x;
    	}
    	else
    	{
    		cout<<3-(x+y);
    	}
        return 0;
    }
    复制的是gay
    
    • 0
      @ 2025-3-12 20:24:07
      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
      	int x,y;
      	cin>>x>>y;
      	int z=3-x-y;
      	if (x==y)
      	{
      		cout<<x;	
      	}
      	else
      	{
      		cout<<z;
      	}
      
      	return 0; 
      }
      
      • -2
        @ 2025-6-28 13:43:31
        int x,y;
        	cin>>x>>y;
        	int z=3-x-y;
        	if (x==y)
        	{
        		cout<<x;	
        	}
        	else
        	{
        		cout<<z;
        	}
        
        • -2
          @ 2025-4-26 11:44:15
          #include <bits/stdc++.h>
          using namespace std;
          int main()
          {
          	int a,b;
          	cin>>a>>b;
          	int c=3-a-b;
          	if (a==b) cout<<a;
          	else cout<<c;
          	return 0; 
          }
          
        • -4
          @ 2025-4-26 11:44:11

          不会就不要看题解

          • -4
            @ 2025-3-15 13:52:18

            #include<bits/stdc++.h> using namespace std; int main() { int x,y; cin>>x>>y; int z=3-x-y; if (x==y) { cout<<x; } else { cout<<z; } return 0; }

            • -5
              @ 2025-4-26 11:49:57

              你好

            • -5
              @ 2025-3-26 19:55:16

              #include <bits/stdc++.h> using namespace std; int main() { int x,y; cin>>x>>y; int z=3-x-y; if (x==y) { cout<<x; } else { cout<<z; }

              return 0; 
              

              }

              • 1

              Information

              ID
              2311
              Time
              1000ms
              Memory
              256MiB
              Difficulty
              1
              Tags
              (None)
              # Submissions
              122
              Accepted
              63
              Uploaded By