2 solutions

  • 1
    @ 2025-3-22 16:10:21
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin>>n;
    	cout<<n*2;
    	return 0;
    }
    • 1
      @ 2025-3-22 16:09:43
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	int n;
      	cin>>n;
      	cout<<(n-1)+(n+1);
      	return 0;
      }
      • 1

      Information

      ID
      673
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      1
      Tags
      # Submissions
      31
      Accepted
      22
      Uploaded By