大笨钟
来源:互联网 发布:数据结构必背算法 编辑:程序博客网 时间:2024/05/20 16:41
#include<stdio.h>#include<stdlib.h>int T,x,q,t,k,kind;int main(){scanf("%d",&T);while(T--){ scanf("%d%d",&x,&q); double res; while(q--){ scanf("%d%d",&kind,&k); if(kind==1){res=k*(60-x)*1.0; printf("%.2f\n",res);}else if(kind==2){res=(60*k)*1.0*60/(60-x); printf("%.2f\n",res);}else if(kind==3){ res=720*3600*1.0/x*1.0; printf("%.2f\n",res*k);}}}//system("pause"); return 0;}
- 大笨钟
- 大笨钟
- 大笨钟
- 大笨钟
- 腾讯马拉松-大笨钟-hdu4530
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟 java
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- Piggy-Bank 完全背包问题
- linux定时任务的设置
- @GeneratedValue
- vim编辑器非常用命令汇总
- leetcode:Palindrome Partitioning
- 大笨钟
- org.springframework.beans.factory.BeanDefinitionStoreException:
- 揭秘InputFormat:掌控Map Reduce任务执行的利器
- 分数(项目二)
- JS中getElementById()、getElementsByName()、getElementsByTagName() 的区别和应用
- [Matlab]基础教程学习笔记(四):二维高层绘图操作
- 那些我们不得不学的东西:JAR
- java笔记 抽象类和接口总结
- Mahout学习——Canopy Clustering