ADV-306 輸出三個整數的最大數

這裏是引用

AC代碼:

#include<bits/stdc++.h>

using namespace std;

int main(){
	int a[3];
	for(int i=0; i<3; i++){
		scanf("%d", &a[i]);
	}
	
	sort(a,a+3);
	
	printf("%d", a[2]);
	return 0;
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章