1.2选1多路选择器 Library ieee; Use ieee.std_logic_1164.all; Entity L1 is Port ( a,b,s:in std_logic; y:out std_logic ); End L1; Architecture one o...

2014-12-02 19:36:36

阅读数 1021

评论数 0


E:Factorial 求阶乘 #include #include #include using namespace std; int fun(int n) { int sum=1; for(int i=1;i<=n;i++) { sum*=i; ...

2014-05-13 19:52:07

阅读数 713

评论数 0


A 有一群兔子和鸽子,共有h个头,f只

2014-05-06 14:54:35

阅读数 760

评论数 0

Count The Carries

Problem Description One day, Implus gets interested in binary addition and binary carry. He will transfer all decimal digits to binary digits to m...

2014-05-06 13:53:34

阅读数 456

评论数 0

Codeforces Round #244 (Div. 2)——A. Police Recruits(水)

The police department of your city has just started its journey. Initially, they don’t have any manpower. So, they started hiring new recruits in gro...

2014-05-05 11:30:58

阅读数 543

评论数 0

Codeforces Round #243 (Div. 2)——A. Sereja and Mugs

Sereja showed an interesting game to his friends. The game goes like that. Initially, there is a table with an empty cup and n water mugs on it. Th...

2014-04-28 20:43:07

阅读数 546

评论数 0

K - Yet Another Story of Rock-paper-scissors

Description Akihisa and Hideyoshi were lovers. They were sentenced to death by the FFF Inquisition. Ryou, the leader of the FFF Inquisition, promi...

2014-04-27 20:24:12

阅读数 682

评论数 0

D - Draw Something Cheat(水)

Description Have you played Draw Something? It's currently one of the hottest social drawing games on Apple iOS and Android Devices! In this game,...

2014-04-27 19:53:45

阅读数 567

评论数 0

B. Megacity

The administration of the Tomsk Region firmly believes that it's time to become a megacity (that is, get population of one million). Instead of impro...

2014-04-27 16:20:42

阅读数 448

评论数 0

A. Squats

Pasha has many hamsters and he makes them work out. Today, n hamsters (n is even) came to work out. The hamsters lined up and each hamster either s...

2014-04-27 16:02:17

阅读数 460

评论数 0


//基于链表的类Chain #include using namespace std; //节点类,定义了每个节点的存储类型和指针名称 template class ChainNode { public: T data; ChainNode *link; }; //链表类,封...

2014-04-21 19:40:23

阅读数 550

评论数 0

B - Break Standard Weight

Description The balance was the first mass measuring instrument invented. In its traditional form, it consists of a pivoted horizontal lever of eq...

2014-04-16 20:10:52

阅读数 397

评论数 0

cf——A. Down the Hatch!

Everybody knows that the Berland citizens are keen on health, especially students. Berland students are so tough that all they drink is orange juice!...

2014-04-16 19:26:12

阅读数 457

评论数 0

Coder-Strike 2014 - Qualification Round——A. Password Check

You have probably registered on Internet sites many times. And each time you should enter your invented password. Usually the registration form autom...

2014-04-15 18:54:55

阅读数 528

评论数 0

A. Guess a number!(cf)

A TV show called "Guess a number!" is gathering popularity. The whole Berland, the old and the young, are watching the show. The rules a...

2014-04-14 21:23:29

阅读数 467

评论数 0

J - What day is that day?(zoj水题)

ZOJ Problem Set - 3785 What day is that day? Time Limit: 2 Seconds      Memory Limit: 65536 KB It's Saturday today, what day is it after 11 ...

2014-04-14 19:43:15

阅读数 507

评论数 0

L - Access System(水)

Description For security issues, Marjar University has an access control system for each dormitory building.The system requires the students to us...

2014-04-14 19:09:32

阅读数 491

评论数 0

G - Ternary Calculation(水)

Description Complete the ternary calculation. Input There are multiple test cases. The first line of input contains an integer T indic...

2014-04-14 19:05:16

阅读数 752

评论数 0


Description During the kindergarten days, flymouse was the monitor of his class. Occasionally the head-teacher brought the kids of flymouse’s cl...

2014-04-10 18:11:25

阅读数 404

评论数 0

cf——C. Arithmetic Progression

Everybody knows what an arithmetic progression is. Let us remind you just in case that an arithmetic progression is such sequence of numbers a1, a2, ...

2014-04-09 20:29:50

阅读数 529

评论数 0

取消 删除