Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

提交为啥总是这个呢 fatal error C1085: Cannot write compiler generated file: 'Main.obj': No space left on device

Posted by happyacmer at 2011-02-18 11:53:03 on Problem 2591
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator