海绵的博客

竞赛虐我千百遍,我待竞赛如初恋。 Never Give Up!!!

排序:
默认
按更新时间
按访问量

Investigating Div-Sum Property UVA - 11361

#include<bits/stdc++.h> using namespace std; #define rep(i,a,b) for(int i=a;i<b;i++) typedef long long ll; bool ...

2018-08-12 20:34:32

阅读数:9

评论数:0

Zeros and Ones UVA - 12063

#include<bits/stdc++.h> using namespace std; #define rep(i,a,b) for(int i=a;i<b;i++) #define per(i,a,b) for(int ...

2018-08-01 20:15:25

阅读数:24

评论数:0

The Counting Problem UVA - 1640

点击打开链接#include<bits/stdc++.h> using namespace std; typedef long long ll; /* 这道题写的自己差点吐血,真是服了,差点放弃 1.前导0 记录直接zero&...

2018-07-13 20:47:29

阅读数:27

评论数:0

H - Mountain Number FZU - 2109(前导0)

One integer number x is called "Mountain Number" if: (1) x>0 and x is an integer; (2) Assume x=a[0]a[1]...a[len-2]a[len...

2018-04-18 22:29:59

阅读数:14

评论数:0

Seven Segment Display ZOJ - 3962

A seven segment display, or seven segment indicator, is a form of electronic display device for displaying decimal numerals that is an alternative to...

2018-04-02 11:37:54

阅读数:28

评论数:0

Round Numbers(前导0判断)

DescriptionThe cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone' (also known as 'Rock, Paper, Scissors...

2018-03-30 14:24:40

阅读数:47

评论数:0

Magic Numbers CodeForces - 628D (数位dp)

Consider the decimal presentation of an integer. Let's call a number d-magic if digit d appears in decimal presentation of the number on...

2018-03-29 22:53:07

阅读数:22

评论数:0

子序列个数 51Nod - 1202

子序列的定义:对于一个序列a=a1,a2,......an。则非空序列a'=ap1,ap2......apm 为a的一个子序列,其中1 例如4,14,2,3和14,1,2,3都为4,13,14,1,2,3的子序列。对于给出序列a,有些子序列可能是相同的,这里只算做1个,请输出a的不同子序列...

2017-08-25 10:34:28

阅读数:131

评论数:0

Maximum Increase CodeForces - 702A *

You are given array consisting of n integers. Your task is to find the maximum length of an increasing subarray of the given array. A subarray is th...

2017-08-25 10:04:49

阅读数:72

评论数:0

1009 数字1的数量

给定一个十进制正整数N,写下从1开始,到N的所有正数,计算出其中出现所有1的个数。例如:n = 12,包含了5个1。1,10,12共包含3个1,11包含2个1,总共5个1。Input 输入N(1 <= N <= 10^9)Output 输出包含1的个数Input示例 12Outp...

2017-05-29 22:42:45

阅读数:142

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭