Sicily 3725 陶陶考试 (难得水题)

来源:互联网 发布:js的失去焦点事件 编辑:程序博客网 时间:2024/04/30 09:59

陶陶是个极品。

代码如下:

#include <stdio.h>int main(){int n;int t;int i;int max;while(scanf("%d", &n) && n != 0){max = -1000000;for(i = 0; i < n; i++){scanf("%d", &t);if(t > max){max = t;}}printf("%d\n", max);}}