Welcome, guest! Login / Register - Why register?
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 dsadsa ( 11 years ago )
#include <fstream>
using namespace std;
ifstream fin("numere8.in");
ofstream fout("numere8.out");
int main()
{int x,F[10000]={0};
while(fin>>x)
    if(x<10000) F[x]++;
for(int i=9999;i>=1;i--)
    if(F[i]==0) fout<<i<<" ";
fin.close();
fout.close();
return 0;}

 

Revise this Paste

Children: 77292
Your Name: Code Language: