#include
using namespace std;
int count(int N)
{
if(N==0)
return 0;
int num=0;
for(int i=1;i<=N;++i)
{
int j=i;
while(j%5==0)
{
num++;
j/=5;
}
}
return num;
}
int aa(int N)
{
i...
分类:
其他好文 时间:
2015-04-12 16:14:05
阅读次数:
91
using System;using System.Collections.Generic;using System.Linq;using System.Text;using FileHelpers;using FileHelpers.DataLink;namespace ConsoleApplic...
分类:
其他好文 时间:
2015-04-12 16:11:26
阅读次数:
102
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ch05t07{ class Program ...
分类:
其他好文 时间:
2015-04-12 16:01:17
阅读次数:
110
1 #include 2 3 using namespace std; 4 5 class animal 6 { 7 public: 8 virtual void print_age(void)=0; 9 protected:10 int age;11 };12 class ...
分类:
其他好文 时间:
2015-04-12 15:58:41
阅读次数:
144
#include #include using namespace std;class card{ private: int a[5][5];//原题 int b[5][5];//解决方案 int c[5][5];/...
分类:
其他好文 时间:
2015-04-12 14:45:41
阅读次数:
139
简单状压DP,忘 了初始化,忘 了&和==的优先级,坑了我十几个WA。#include #include #include #include using namespace std;int dp[110][222][222];int row[110];int status[1>=1; } retur...
分类:
其他好文 时间:
2015-04-12 13:12:15
阅读次数:
134
蓝桥杯的纸牌游戏,这里我只用了简单的暴力,很费事,其实可以用递归, DP等等来写。
代码:
#include
#include
using namespace std;
int main()
{
int a[13];
static int count;
int ans = 0;
for(a[0]=0; a[0]
{
...
分类:
其他好文 时间:
2015-04-12 12:08:34
阅读次数:
130
//合并排序
#include
#include
using namespace std;
void sort(int c[],int a[],int b[],int n)
{
int i=0;
int j=0;//a
int k=0;//b
while(k!=5 && j!=5)
{
if(a[j]>b[k])
{
c[i++]=b[k++];
}
...
分类:
编程语言 时间:
2015-04-12 12:04:02
阅读次数:
145
1、 自增、自减 很简单,没什么可解释的,注意一下前缀和后缀运算的区别C++源码Debug版Release版#include using namespace std;int main(){ int a, b; cin >> a >> b; //自增 a = ++b + 10; cout using....
分类:
编程语言 时间:
2015-04-12 12:02:51
阅读次数:
197
1.catch子句参数为对象
先看一段代码:
#include
#include
using namespace std;
class MyException :public exception{
public:
MyException(){
cout<<"MyException()"<<endl;
}
~MyException(){
cout<<"~MyException(...
分类:
编程语言 时间:
2015-04-12 12:02:30
阅读次数:
144