Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by RoughKing ( 5 years ago )
#include <iostream>
#include <climits>
using namespace std;
int main()
{
int max=0;
int t;
cin>>t;
int n;
cin>>n;
int arr[n];
while(t--){
for(int i=0;i<n;i++){
cin>>arr[i];
}
for(int i=0;i<n;i++){
if(arr[i]>max){
max=arr[i];
cout<<max<<endl;
}
}
}
return 0;
}
Revise this Paste