#include <iostream> using namespace std; int main() { // write your code here...... int a,b; cin>>a>>b; printf("%d",a>b?a:b); return 0; }
很基础的三元运算符
#include <iostream> using namespace std; int main() { // write your code here...... int a,b; cin>>a>>b; printf("%d",a>b?a:b); return 0; }
很基础的三元运算符