top1编程
← 返回题目
题解

【入门】十位大还是个位大

1 条题解

  • 0
    @ 2026-7-28 22:09:40
    #include <bits/stdc++.h>
    using namespace std;
    
    int main(){
        int n;
        cin>>n;
        if(n / 10 > n % 10){
        	cout<<n / 10;
    	}else{
    		cout<<n % 10;
    	}
    }
    
    • 1