关闭
当前搜索:

[置顶] CCF认证历年试题解【网上跟帖,请不要使用称呼】

程序改变现实,软件统治世界。 程序员需要有精益求精的工匠精神,追求逻辑的极简、时间的最少和存储的最省,并且懂得其中的平衡。 数据表示需要优先考虑,对于许多问题,找到表示该问题的数据结构,问题自然就解决了。 CCF计算机职业资格认证的每一道试题都十分经典,覆盖现实世界中方方面面的问题。这个历年试题解全部用C++语言编写,程序中附有注释,力求解题思路清晰简洁,值得珍藏与模仿。 希望获得100分...
阅读(30495) 评论(11)

[置顶] ACM-ICPC训练行动路线图

Step0.准备 HDU1089-HDU1096 A+B for Input-Output Practice (I)-(VIII)(入门必备训练) PKU百练Bailian Step1. 入门划水 ACM入门之C语言 ACM水题之HDU ACM水题之一 ACM水题之二 ACM水题之三 Step2. 基础训练 ACM编码与密码 ACM进制与分数 ...
阅读(3622) 评论(1)

UVA993 Product of digits【水题+字符串排序】

For a given non-negative integer number N, find the minimal natural Q such that the product of alldigits of Q is equal N. Input The first line of input contains one positive integer number, which is...
阅读(10) 评论(0)

UVA10473 Simple Base Conversion【进制转换】

In this problem you are asked to write a simplebase conversion program. You will be givena hexadecimal or decimal integer number as input.You will have to output the correspondingdecimal or hexadecima...
阅读(11) 评论(0)

UVA694 UVALive5466 The Collatz Sequence【模拟】

An algorithm given by Lothar Collatz produces sequences of integers, and is described as follows: Step 1: Choose an arbitrary positive integer A as the first item in the sequence. Step 2: If A = 1 t...
阅读(13) 评论(0)

UVA371 UVALive5343 Ackermann Functions【模拟+最值】

An Ackermann function has the characteristic that the length of the sequence of numbers generatedby the function cannot be computed directly from the input value. One particular integer Ackermannfunct...
阅读(14) 评论(0)

UVA10409 ZOJ1667 Die Game【模拟】

Life is not easy. Sometimes it is beyond your control. Now, as contestantsof ACM ICPC, you might be just tasting the bitter of life. But don’t worry!Do not look only on the dark side of life, but look...
阅读(15) 评论(0)

UVA10935 Throwing cards away I【模拟+queue+循环队列】

Given is an ordered deck of n cards numbered 1to n with card 1 at the top and card n at thebottom. The following operation is performed aslong as there are at least two cards in the deck:         Thr...
阅读(42) 评论(0)

UVA11530 SMS Typing【模拟+map+查表】

Cell phones have become an essential part of modern life. In addition tomaking voice calls, cell phones can be used to send text messages, whichare known as SMS for short. Unlike computer keyboards, m...
阅读(56) 评论(0)

ACM-ICPC知识要点收集

一、排序  排序分为内排序和外排序两种,绝大多数的排序算法研究的是内排序。排序算法 - 维基百科,自由的百科全书Sorting algorithm - Wikipedia排序算法_百度百科Sorting - Algorithmist八大排序算法二、数据结构三、标准模板库STL四、数论Prime Sieve of Eratosthenes - AlgorithmistEuclidean algori...
阅读(52) 评论(0)

UVA10104 Euclid Problem【扩展欧几里得算法】

From Euclid it is known that for any positive integers A and B there exist such integers X and Y thatAX + BY = D, where D is the greatest common divisor of A and B. The problem is to find for givenA a...
阅读(29) 评论(0)

ZOJ1256 UVA602 UVALive5474 What Day Is It?【日期】

What Day Is It? Time Limit: 2 Seconds      Memory Limit: 65536 KB The calendar now in use evolved from the Romans. Julius Caesar codified a calendar system that came to be known as the Julian ca...
阅读(31) 评论(0)

HDU1308 What Day Is It?【日期】

What Day Is It? Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 1380    Accepted Submission(s): 592 Problem Description The calendar no...
阅读(30) 评论(0)

UVA10978 Let's Play Magic!【模拟】

You have seen a card magic trick named “Spelling Bee”. The process goes as follows:   1. The magician first arranges 13 cards in a circle, as shown in the figure below.   2. Starting from the marked...
阅读(25) 评论(0)

POJ2121 ZOJ2311 Inglish-Number Translator【map+字符串比较+水题】

Inglish-Number Translator Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 5597   Accepted: 2203 Description In this problem, you will be given one or more in...
阅读(49) 评论(0)

HDU3346 Lucky Number【进制】

Lucky Number Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3583    Accepted Submission(s): 1783 Problem Description To Chinese people...
阅读(21) 评论(0)

UVA11038 How Many O's?题解

原文链接:http://www.algorithmist.com/index.php/User:Sweepline/UVa_11038.cpp AC的C++语言程序如下: // C++ solution for problem 11038 - "How Many 0's" #include #include #include using namespace std; //...
阅读(21) 评论(0)

UVA10978 Let's Play Magic! 题解

原文链接:http://www.algorithmist.com/index.php/User:Sweepline/UVa_10978.cpp AC的C语言程序: #include #include int main() { char card[64][64], word[64][64], *order[64]; int i, j, k, n; while (sc...
阅读(40) 评论(0)

UVA10909 Lucky Number题解

原文链接:http://www.algorithmist.com/index.php/User:Sweepline/UVa_10909.cpp AC的C++语言程序: /* * Solution for problem 10909 'Lucky Number'. * * The code uses a (simple) binary search tree to ...
阅读(35) 评论(0)

UVA10735 Euler Circuit题解

原文链接:http://www.algorithmist.com/index.php/User:Sweepline/UVa_10735.cpp AC的C++语言程序: /* UVa 10735: find euler tour in a mixed graph */ #include #include #include using namespace std; i...
阅读(22) 评论(0)

UVA10327 Flip Sort【冒泡排序+逆序偶】

Sorting in computer science is an important part. Almost every problem can be solved effeciently ifsorted data are found. There are some excellent sorting algorithm which has already acheived the lowe...
阅读(40) 评论(0)

HDU2133 What day is it【日期】

What day is it Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 6518    Accepted Submission(s): 1934 Problem Description Today is Saturd...
阅读(37) 评论(0)
1172条 共59页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:902388次
    • 积分:20627
    • 等级:
    • 排名:第459名
    • 原创:1085篇
    • 转载:87篇
    • 译文:0篇
    • 评论:401条
    文章分类
    博客专栏
    最新评论