摘要: HDU 1002 A + B Problem II 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 阅读全文
posted @ 2020-11-14 16:00 Dios314 阅读(165) 评论(0) 推荐(0)
摘要: HDU 1004 Let the Balloon Rise Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the 阅读全文
posted @ 2020-11-14 12:17 Dios314 阅读(50) 评论(0) 推荐(0)
摘要: HDU 1085 Problem Description We all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recently, it is reported 阅读全文
posted @ 2020-11-14 10:53 Dios314 阅读(40) 评论(0) 推荐(0)
摘要: HDU 1003 Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6, 阅读全文
posted @ 2020-11-14 10:47 Dios314 阅读(84) 评论(0) 推荐(0)
摘要: ACM Rokkie X - 字符串统计 Input: 输入数据有多行,第一行是一个整数n,表示测试实例的个数,后面跟着n行,每行包括一个由字母和数字组成的字符串。 Output: 对于每个测试实例,输出该串中数值的个数,每个输出占一行。 Sample input: 2 asdfasdf123123 阅读全文
posted @ 2020-11-06 15:14 Dios314 阅读(58) 评论(0) 推荐(0)
摘要: 198. 打家劫舍 你是一个专业的小偷,计划偷窃沿街的房屋。每间房内都藏有一定的现金,影响你偷窃的唯一制约因素就是相邻的房屋装有相互连通的防盗系统,如果两间相邻的房屋在同一晚上被小偷闯入,系统会自动报警。 给定一个代表每个房屋存放金额的非负整数数组,计算你 不触动警报装置的情况下 ,一夜之内能够偷窃 阅读全文
posted @ 2020-11-06 15:13 Dios314 阅读(21) 评论(0) 推荐(0)
摘要: P - Number Sequence A single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups 阅读全文
posted @ 2020-11-05 22:34 Dios314 阅读(130) 评论(0) 推荐(0)