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

Re:为什么gcc就RTE,c就AC?我自己在本地用gcc试了1到13的数据也正常啊,求教!

Posted by Johnnx at 2009-08-11 19:33:10 on Problem 1012
In Reply To:Re:为什么gcc就RTE,c就AC?我自己在本地用gcc试了1到13的数据也正常啊,求教! Posted by:baicaitest at 2009-08-05 19:13:47
这样是打表,可是数据是如何算出来的呢

> #include <iostream>
> using namespace std;
> int a[14]={2,7,5,30,169,441,1872,7632,1740,93313
> ,459901,1358657,2504881};
> 
> int main(){
>     int b;
>     cin>>b;
>     while (b){
>     cout<<a[b-1]<<endl;
>     cin>>b;
>     }
> }
> 猥琐程序。。。

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