1 solutions

  • 1
    @ 2025-3-29 16:21:16
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin>>n;
    	if(n==4)
    	{
    		cout<<4;	
    	}
    	else
    	{
    		int a=n/3;
    		int b=n%3;
    		cout<<a+b;	
    	}
    	return 0;
    }

    Information

    ID
    675
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    3
    Tags
    # Submissions
    69
    Accepted
    18
    Uploaded By