自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

转载 完全模拟FIFA2014世界杯 原创求顶!

还沉浸在2014世界杯吗? 快用程序模拟属于自己独一无二的世界杯吧!FIFA2014世界杯模拟器 你值得拥有// 类 player、 team的定义及实现, 代码放到player_team.cpp中 1 #include <iostream> 2 #include <string> 3 using name...

2014-09-17 21:56:00 764

转载 简易游戏 2048 制作

// Matrix.h#ifndef MATRIX_H#define MATRIX_H#include<iostream>#include<time.h>#include<stdlib.h>#define rows 4#define cols 4#define L 6using std::o...

2014-05-08 23:09:00 150

转载 万年历制作

#include<iostream>#include<iomanip>using namespace std;void printMonth(int year, int month);void printMonthTitle(int year, int month);void printMonthName(int month);void printMont...

2014-04-28 23:20:00 160

转载 嵌套链表的实现

You guys must have seen nested list (嵌套链表) such as [1, 2, 3, [4, 5, [6, 7]], 8, [9, 0]].So your task is to improve DouList with nested feature. You can directly copy the codes submitted before ...

2014-04-24 22:39:00 498

转载 PY的宝藏

Description有一天, PY找到了一张藏宝图.这张地图被划分成2^n * 2^n个格子.左上角的格子的坐标为(0, 0)而右下角格子的坐标为(2^n-1, 2^n-1).如下:(0, 0)(0, 1)……(0, 2^n-1)…………………...

2014-04-18 22:39:00 66

转载 Hard GCD and LCM

对于两个整数G和L(1<=G,L<=200000000),试找出使gcd(x, y, z) = G 和 lcm(x, y, z) = L的解(x,y,z)的个数。LSC被这道小学三年级的数学题难住了,聪明的你能帮帮他吗?注意:① gcd是最大公约数,lcm是最小公倍数。 ②(3,4,5)和(4,5,3)是不同的解。 ...

2014-04-18 22:37:00 77

转载 梅森素数

Description概念1:梅森数,当一个正整数可以表示成2p-1形式,且p为素数时,2p-1即称为梅森数概念2:在自然数中,只有1和它本身两个约数的数叫做素数。一个梅森数被称为梅森素数当且仅当它是一个素数。现给定一个正整数p(p<=31),请判断是否是一个梅森素数。Input输入数据包含多组,每组包括1行,包含一个正整数p(p<=31)。以E...

2014-04-18 22:36:00 431

转载 高精度乘法

You'll be given two intergers. The number of the digits of each is from 1 to 200, inclusive. And what you need to do is to culcalate the product of the two intergers. The number of the digi...

2014-04-18 22:35:00 78

转载 快速幂取模

Given a b and p, output (a^b) % p (2<=a<=100, 0<=b<=1000000000, 3<=p<=10000)#include<stdio.h>#include<stdlib.h>#include<string.h>int quic...

2014-04-18 22:33:00 72

转载 高精度加法

ConstraintsTime Limit: 1 secs, Memory Limit: 8 MBDescriptionInput A and B, output A+BInputInput two values, A and B.(0<=A,B<10^100)OutputOutput the result of A+...

2014-04-18 22:32:00 63

转载 卡片游戏

Description桌上有一叠牌,从第一张牌(即位于顶面的牌)开始从上往下依次编号为1~n。当至少还剩两张牌时进行以下操作:把第一张牌扔掉,然后把新的第一张放到整叠牌的最后。输入n,输出每次扔掉的牌,以及最后剩下的牌。Input第一行为一个整数t(0<t<40),表示测试用例个数。以下t行每行包含一个整数n(0<n<40),为一个测试用例的牌...

2014-04-18 22:31:00 173

转载 斐波那契数列

F[0]=0;F[1]=1;F[n]=F[n-1]+F[n-2], for n>1给出n (0<=n<=10000) 和 m (0<m<10000);求斐波那契数列第n项mod m的值(因为太大了);#include<stdio.h>#include<string.h>// 矩阵快速幂voi...

2014-04-18 22:29:00 76

转载 双头链表的实现

// List.h#ifndef SSCPP2014_DOULIST_A_H#define SSCPP2014_DOULIST_A_H#include<string>structDouListNode{int elem;DouListNode*prev,*next;DouListNode(int e =0,DouListNode...

2014-04-10 21:08:00 204

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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