1 solutions

  • 1
    @ 2026-8-27 16:25:17
    #include<bits/stdc++.h>
    using namespace std;
    int n;
    int main(){
    	cin>>n;
    	for(int i=1;i<=n;i++){
    		if(3*i+3==n){
    			cout<<i<<' '<<i+1<<' '<<i+2;
    			return 0;
    		}
    	}
    	cout<<-1;
    	return 0;
    }
    
    

    Information

    ID
    1944
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    53
    Accepted
    21
    Uploaded By