| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
提交为啥总是这个呢 fatal error C1085: Cannot write compiler generated file: 'Main.obj': No space left on device#include<stdio.h>
int a[10000001]={1};
int main()
{
int m2=0,m3=0,n,t,count=1;
while(count<10000000)
{
t=1100000000;
if(t>2*a[m2]+1) t=2*a[m2]+1;
if(t>3*a[m3]+1) t=3*a[m3]+1;
if(t==2*a[m2]+1) m2++;
if(t==3*a[m3]+1) m3++;
a[count++]=t;
}
while(scanf("%d",&n)!=EOF)
printf("%d\n",a[n-1]);
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator