F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_13797694_21987.cpp:1:2: error: invalid preprocessing directive #includestdio
 #includestdio.h����__int64 Pow(int y){����    __int64 res=1,t=3;����    while(y){����        if(y&1) res*= t;����        t*= t; y=1;����    }����    return res;����}����int Gcd(int x,int y){return y?Gcd(y,x%y):x;}����__int64 Polya(int n)����{����    if(n==0) return 0;����    __int64 ans=0;����    for(int i=1;i����    if(n&1) ans+= n*(Pow((n+1)/2));����    else ans+= (n/2)*(Pow(n/2)+Pow(n/2+1));����    return ans/(n+n);����}����int main()����{����    int n;����    freopen("1817.txt","r",stdin);����    while(scanf("%d",&n))����    {����        if(n==-1) break;����        printf("%I64d\n",Polya(n));����    }����    while(1);����}                     ���ࣺδ���� | ����:0 | ���:   | �ٱ� | �ղ� | ��������
  ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-04 12:32:05, Gzip enabled