markdown 在线制作ppt json校验和格式化工具

POJ 1006

#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
    //freopen("acm.acm","r",stdin);
    int p;
    int e;
    int i;
    int d;
    int j;
    j = 0;
    while(cin>>p>>e>>i>>d)
    {
        if(p == -1&& e == -1 && i == -1 && d == -1)
            break;
        e = (5544*p + 14421*e + 1288*i - d)%(21252);
        while(e <= 0)
        {
            e += 21252;
        }
        cout<<"Case "<<++j<<": the next triple peak occurs in "<<e<<" days."<<endl;
    }
}

 

关注我的公众号,当然,如果你对Java, Scala, Python等技术经验,以及编程日记,感兴趣的话。 

技术网站地址: vmfor.com

posted @ 2015-06-09 13:11  GavinHacker  阅读(130)  评论(0编辑  收藏  举报
markdown 在线制作ppt json校验和格式化工具