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_17426114_13463.cpp:1:72: error: #include expects "FILENAME" or <FILENAME>
 /* * hdu3083/win.cpp * Created on: 2012-7-15 * Author : ben */#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;const int MOD = 20091226;typedef long long LL;inline int getS(LL n) { LL mod = MOD * 6; LL ret = (n % mod) * ((n + 1) % mod); ret %= mod; ret *= (n + 2) % mod; ret %= mod; ret /= 6; return (int)ret;}inline int getX(LL n) { if(n <= 1) { return 0; } int mod = MOD * 24; LL ret = (n + 1) % mod; if(n % 2 == 1) { ret = (((2 * ret - 3) * ret) % mod - 2) * ret; }else { ret = (n % mod) * ((n + 2) % mod); ret %= mod; ret *= (2 * n - 1) % mod; } ret %= mod; ret /= 24; return ret;}inline int getP(LL n) { if(n < 1) { return 0; } int mod = MOD * 8; LL ret = n % mod; ret = ((((ret * (ret + 1))% mod) * (ret + 2))% mod) * (ret + 3); ret %= mod; ret /= 8; return ret;}int main() {#ifndef ONLINE_JUDGE freopen("data.in", "r", stdin);#endif int n; LL t, d, p, s, x; while(scanf("%d", &n) == 1) { s = getS(n); x = getX(n); t = s + x; d = 3 * x; p = getP(n - 1); printf("Triangle: %d/n", t % MOD); printf("Diamond: %d/n", d % MOD); printf("Parallelogram: %d/n", p % MOD); } return 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-11-27 06:46:04, Gzip enabled