8 solutions

  • 0
    @ 2025-8-19 16:03:12
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int n[3];
    	for(int i=0;i<3;i++){
    		cin>>n[i];
    	}
    	sort(n,n+3);
    	if(n[0]+1==n[1] and n[0]+2==n[2]){
    		cout<<"TRUE";
    	}
    	else{
    		cout<<"FALSE";
    	}
    	return 0;
    }
    
    
    
    • @ 2025-8-19 16:03:47

      清晰的思路,优秀的方法

Information

ID
35
Time
1000ms
Memory
256MiB
Difficulty
1
Tags
# Submissions
309
Accepted
82
Uploaded By