POJ1006
来源:互联网 发布:java 圆周率算法 编辑:程序博客网 时间:2024/04/28 05:54
#include<iostream>#include<string>#include<math.h>using namespace std;int main(){int i,j,k,ncase;int p,e,intell,date;cin>>p>>e>>intell>>date;ncase=0;while(p!=-1){ncase++;for(i=p%23;i<=21252;i=i+23)if(abs(i-e)%28==0) if(abs(i-intell)%33==0){ cout<<"Case "<<ncase; cout<<": the next triple peak occurs in "; if(i>date) cout<<i-date; else cout<<i-date+21252; cout<< " days.\n"; cin>>p>>e>>intell>>date; break;}}return 0;}
0 0
- POJ1006
- POJ1006
- poj1006
- poj1006
- poj1006
- POJ1006
- poj1006
- poj1006
- poj1006
- POJ1006
- POJ1006
- POJ1006
- POJ1006
- poj1006
- poj1006
- POJ1006
- poj1006
- Poj1006
- 人工神经网络(Artificial Neural Networks)
- Java读取ini配置
- A == B ?(考虑小数)
- 机器学习的各种资源链接
- Android Layout中dip, dp, px, sp区别
- POJ1006
- hdu 4008 树形dp 时间戳在树形结构中的应用
- 几种漂亮的hr横线!!!
- ubuntu更新软件时候磁盘空间不足的问题
- 【BZOJ】【P2594】【Wc2006】【水管局长数据加强版】【题解】【LCT】
- JAVA URL相关类介绍
- 清除所有.svn目录
- ListCtrl控件学习笔记
- hdu_2260_项链问题_DFS_回溯法