杭电acm 1021题】的更多相关文章

题意是要求能被3整除的数所以为了避免大数据的产生,直接对每个数据求余,然后相加 #include "iostream" using namespace std; int main(void) { ; ; unsigned ]; fib[]=; fib[]=; while(cin>>i) { ) { cout<<"no"<<endl;} else { ;j<=i;j++) { fib[]=fib[]+fib[]; fib[]=…
水题,一个求闰年的题目,复习一下闰年的求法.... 1,如果能被4整除但不能被100整除的是闰年 2,能被400整除的是闰年 题目大意是:给定一个开始年份T以及一个正数N,要求求出从T开始,到了哪一年刚好是第N个闰年,如果开始年份是闰年则记为第一个闰年.... /*********************************** 杭电acm 1076题 已AC *************************************/ #include <iostream> using…
本题应该是迄今为止最为简单的一道题,只有一组输入,输出也简单.... /****************************************** 杭电acm 1037题 已AC *****************************************/ #include "iostream" using namespace std; int main(void) { ]; ; cin>>height[]>>height[]>>h…
本题比较简单,但是需要掌握几个小技巧,先上代码 /************************************* 杭电ACM 1038题,已AC **************************************/ #include "iostream" using namespace std; int main(void) { float p=3.1415927; float diameter; float temp; int revolutions; ; fl…
一道水题..... 大意是一条1inch的虫子在一个n inch的盒子的底部,有足够的能够每一分钟往上爬u inch,但是需要休息一分钟,这期间会往下掉d inch,虫子爬到盒子口即认为结束.要求计算出给定的n,u,d虫子爬上的时间. /****************************************************** 杭电acm 1049题 已AC *****************************************************/ #incl…
Problem Description For products that are wrapped in small packings it is necessary that the sheet of paper containing the directions for use is folded until its size becomes small enough. We assume that a sheet of paper is rectangular and only folde…
最近忙于考试复习,没有多少可供自己安排的时间,所以我利用复习之余的空闲时间去刷刷杭电acm的题目,也当对自己编程能力的锻炼吧. Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line of the input contains an integer T(1…
最近兴趣来了,闲暇之余,回顾大学期间刷过的杭电acm那些入门级别的题,以此巩固基础知识! 以下参考刷题顺序,避免入坑 原文传送门:https://blog.csdn.net/liuqiyao_01/article/details/8477645 第一阶段:开始入门吧!(15天,53题) 一.输入输出练习(2天,10题) .—. 二.简单操作:(—4天,12题) —. 三.英文题试水(—4天,8题) ....... 四.回归水题(-6天,24题) —..... (第一阶段大体结束之后,会由几位学长…
马上要找工作了,锻炼下自己的写程序能力,不多说,上代码 /********************杭电acm 1015 已AC 在这个程序里,使用穷举法来实现,但是输出顺序需要安装字典的最大 来输出 1,在升序排序时,可以直接使用sort这个函数,也可以自己写.. 在自己写的程序里面要注意下标的越界问题 ***********************************/ #include "iostream" using namespace std; #define Max 20…
本题是一个非常简单的升序排序题目,但那时在做的时候把题目看错了,导致花费了大量的时间来检查为什么WA,最后发现题目看错了..... /************************************************* 杭电acm,1040,已AC **************************************************/ #include <iostream> #include <conio.h> using namespace std;…