4 solutions

  • 4
    @ 2024-7-11 17:10:23

    一道题

    #include <bits/stdc++.h>
    using namespace std;
    
    struct d {
    	long long a, b;
    } c;
    
    void pr() {
    	cout << c.a + c.b;
    }
    
    int main() {
    	cin >> c.a >> c.b;
    	pr();
    	return 0;
    }
    
    • 4
      @ 2024-7-11 15:59:39

      ~👍~

      #include <bits/stdc++.h>
      using namespace std;
      #define  daima long long a,b,c;cin>>a>>b;cout<<a+b;return 0;
      
      int main() {
      	daima
      }}
      
      • 2
        @ 2024-7-12 8:15:04

        水题

        #include <bits/stdc++.h>
        using namespace std;
        
        int main() {
        	int a, b, c;
        	cin >> a >> b;
        	c = a + b;
        	cout << c;
        	return 0;
        }
        
        • 0
          @ 2024-7-20 20:43:03

          这是一题肥肠煎蛋的一道加法dfs(深搜)题👀️

          #include <bits/stdc++.h>
          using namespace std;
          int a, b;
          
          void dfs(int ans) {
          	if (ans = a + b) {
          		cout << ans;
          		return;
          	}
          	dfs(ans + 1);
          }
          
          int main() {
          	cin >> a >> b;
          	dfs(0);
          	return 0;
          }
          
          • 1

          Information

          ID
          595
          Time
          1000ms
          Memory
          256MiB
          Difficulty
          5
          Tags
          (None)
          # Submissions
          44
          Accepted
          17
          Uploaded By