- 博客(30)
- 资源 (1)
- 收藏
- 关注
原创 CodeForces-339B-Xenia and Ringroad
B. Xenia and Ringroadtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputXenia lives in a city that has n hous
2014-11-04 23:21:06
602
原创 CodeForces-118B-PresentFromLena
B. Present from Lenatime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya's birthday is approaching and Le
2014-11-02 23:18:00
575
原创 CodeForces-263A-Beautiful Matrix
A. Beautiful Matrixtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou've got a 5 × 5 matrix, consisting o
2014-10-29 20:09:35
692
原创 CodeForces-460A-Vasya And Socks
A. Vasya and Sockstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has n pairs of socks. In the mornin
2014-10-28 19:05:43
611
原创 CodeForves-122A-LuckyDivisions
A. Lucky Divisiontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya loves lucky numbers. Everybody know
2014-10-25 21:04:05
410
原创 CodeForces-58A-Chat room
A. Chat roomtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has recently learned to type and log on
2014-10-25 20:22:33
2297
原创 CodeForces-379A-New Year Candles
A. New Year Candlestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasily the Programmer loves romance, so
2014-10-18 16:20:31
521
原创 CodeForces-136A-Presents
A. Presentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Petya very much likes gifts. Recently he
2014-10-16 20:07:47
916
原创 CodeForces-271A-Beautiful Year
A. Beautiful Yeartime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt seems like the year of 2013 came only
2014-10-14 21:22:45
971
原创 CodeForces-228A-Is your horseshoe on the other hoof?
A. Is your horseshoe on the other hoof?time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera the Horse is
2014-10-14 21:21:13
505
原创 CodeForces-236A-Boy or Girl
A. Boy or Girltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThose days, many boys use beautiful girls' ph
2014-10-08 22:22:18
816
原创 CodeForces-281A-Word Capitalization
A. Word Capitalizationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCapitalization is writing a word wit
2014-10-08 20:50:34
802
原创 CodeForces-339A-Helpful Maths
A. Helpful Mathstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputXenia the beginner mathematician is a thir
2014-10-07 21:01:13
918
原创 CodeForces-148A-Insomnia cure
A. Insomnia curetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output«One dragon. Two dragon. Three dragon», —
2014-09-28 19:56:41
705
转载 C语言中的宏定义
1. 简单宏定义简单的宏定义有如下格式:[#define指令(简单的宏)] #define 标识符替换列表替换列表是一系列的C语言记号,包括标识符、关键字、数、字符常量、字符串字面量、运算符和标点符号。当预处理器遇到一个宏定义时,会做一个 “标识符”代表“替换列表”的记录。在文件后面的内容中,不管标识符在任何位置出现,预处理器都会用替换列表代替它。
2014-09-15 20:13:22
314
原创 CodeForces-82A-Double Cola
A. Double Colatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSheldon, Leonard, Penny, Rajesh and Howard ar
2014-09-13 15:05:00
679
原创 CodeForces-71A-Way Too Long Words
A. Way Too Long Wordstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSometimes some words like "localizati
2014-09-12 20:23:01
647
原创 CodeForces-133A-HQ9+
A. HQ9+time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputHQ9+ is a joke programming language which has only
2014-09-12 20:10:54
815
原创 CodeForces-96A-Football
A. Footballtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya loves football very much. One day, as he
2014-09-11 18:33:29
496
原创 CodeForces-266A-Stones on the Table
A. Stones on the Tabletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n stones on the table in a
2014-09-10 21:39:10
480
原创 CodeForces-282A-Bit++
A. Bit++time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe classic programming language of Bitland is Bit+
2014-09-08 17:20:53
485
原创 CodeForces-131A-cAPS lOCK
A. cAPS lOCKtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputwHAT DO WE NEED cAPS LOCK FOR?Caps lock is
2014-09-08 09:57:29
934
原创 CodeForces-116A-Tram
A. Tramtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLinear Kingdom has exactly one tram line. It has n
2014-09-04 19:50:30
480
原创 CodeForces-231A
A. Teamtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day three best friends Petya, Vasya and Tonya d
2014-09-03 20:49:02
725
原创 C++与Java变量声明与赋值的区别
C++中的变量区分声明与定义,声明仅仅告诉编译器某个类型的变量会被使用,而定义才会为变量分配内存。int i=10;(定义)extern int i;(声明)Java中,不区分变量的声明与定义,变量声明接着赋值后就可以使用。在循环内使用while(1){int i=0;}因为每次循环是相对独立的区域,所以不会产生命名冲突
2014-09-03 20:48:27
698
原创 CodeForces-50A-Domino piling
A. Domino pilingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a rectangular board of M × N
2014-09-02 13:27:33
604
转载 java system.out.printf()的使用方法
package test; public class Main { public static void main(String[] args) { // 定义一些变量,用来格式化输出。 double d = 345.678; String s = "你好!";
2014-08-28 14:58:15
432
转载 Java中Scanner的nextInt(),next(),nextLine()方法总结
今天在java上机课时遇到了个小问题,使用Scanner输入数据时,使用了一次nextInt(),一次nextLine(),却只接收了一个整数。代码如下code1: 1 package cn.dx; 2 3 import java.util.Scanner; 4 5 public class ScannerTest { 6 7 pu
2014-08-28 14:54:09
700
原创 Java多态性的理解
先写一些,有时间补充完整首先要理解几个概念:1、对象与对象变量。 举个一般书中常见的栗子:比如要构造一个Date类的对象,语法为new Date(),有基础人的都知道这叫通过构造器构造了一个Date类的对象(至于什么叫构造器,就请百度......)回归正题,通常,我们希望自己构造出的对象可以多次使用,所以一个东西去表示它,这时就出现了对象变量,将对象存放在对象变量中,语法为Da
2014-08-25 12:07:11
340
原创 windows下编译postgresql数据库
windows下编译postgresql数据库1、CMD命令基础("cd/"=>地址回退,"cd连续或者不连续地址"=>找到所需目录)2、环境变量的配置以及原理 Convert 是Windows将FAT32分区转换为NTFS分区的命令。这个文件在C:\windows\system32下面。如果你的没有,从别的电脑上面把它复制到你电脑上面,再运行它就可以了。Win
2014-08-24 22:11:13
551
[OpenGL Development Cookbook 2013 6 ] Muhammad Mobeen Movania
2014-11-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人