a1:array[1..100]of integer;
n,i,s:integer;
begin
read(n);
for i:=1 to n do
read(a1[i]);
for i:=1 to 1000 do
a[i]:=0;
for i:=1 to n do
a[a1[i]]:=1;
for i:=1 to 1000 do
if a[i]=1
then inc(s);
writeln(s);
for i:=1 to 1000 do
if a[i]=1
then
write(i,' ');
end.
#include <iostream>
using namespace std;
int main (){
freopen ("rp爆发.out","w",stdout);
long long rp=100000000000;
while (1){
rp+=100000000000;
}
printf ("%lld",rp);
return 0;
}
运行结果:rp爆满以至于溢出
祝2小时后,我们都能在NOIP中创造佳绩!!!人品++!
#include"iostream"
using namespace std;
int main (){
freopen ("rp爆发.out","w",stdout);
long long rp=100000000000;
while (1){ rp+=100000000000; }
printf ("%lld",rp);
return 0; }
运行结果:rp爆满以至于溢出 !
祝2小时后,我们都能在NOIP中创造佳绩!!!人品++!