#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main() {
srand(time(NULL));
int a[10];
int max=-100;
for (int i=0; i<10; i++)
{
a[i]=rand()%200-100;
if (a[i]>max)
{
max=a[i];
cout<<max<<" ";
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGxpYj4KI2luY2x1ZGUgPGN0aW1lPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKc3JhbmQodGltZShOVUxMKSk7CmludCBhWzEwXTsKaW50IG1heD0tMTAwOwpmb3IgKGludCBpPTA7IGk8MTA7IGkrKykKewphW2ldPXJhbmQoKSUyMDAtMTAwOwppZiAoYVtpXT5tYXgpCnsKbWF4PWFbaV07CmNvdXQ8PG1heDw8IiAiOwp9Cgp9CglyZXR1cm4gMDsKfQ==