Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
11853 徐一喆 比较三个数的大小 C++ Accepted 2 MS 760 KB 211 2021-05-17 19:51:54

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int a[3]; bool cmp(int x,int y) { return x>y; } int main() { cin>>a[0]>>a[1]>>a[2]; sort(a,a+3,cmp); cout<<a[0]<<" "<<a[1]<<" "<<a[2]; return 0; }