![](https://img-blog.csdnimg.cn/20190918140037908.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
算法学习
文章平均质量分 62
本人算法学习笔记
小僧寒水寺无心
热爱生活,热爱编程
展开
-
杭电科大ACM:Rightmost Digit
Rightmost DigitProblem DescriptionGiven a positive integer N, you should output the most right digit of N^N.给定一个正整数 N,你应该输出 N^N 中最右边的数字。InputThe input contains several test cases. The first line of the input is a single integer T which is the number o原创 2021-09-22 19:09:13 · 303 阅读 · 0 评论 -
杭电科大ACM:An Easy Task
An Easy TaskProblem DescriptionIgnatius was born in a leap year, so he want to know when he could hold his birthday party. Can you tell him?Given a positive integers Y which indicate the start year, and a positive integer N, your task is to tell the Nth原创 2021-09-06 18:16:28 · 204 阅读 · 0 评论 -
杭电科大ACM:Climbing Worm
Problem DescriptionAn inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minute before climbing again. During the rest, it slips down d inches. The process of climbing and restin原创 2021-09-05 13:04:37 · 240 阅读 · 1 评论