uva

UVA 11401 Triangle Counting

You are given n rods of length 1, 2…, n. You have to pick any 3 of them & build a triangle. How many distinct triangles can you make? Note that, two triangles will be considered different if th...

UVA 11538 Chess Queen

  You probably know how the game of chess is played and how chess queen operates. Two chess queens are in attacking position when they are on same row, column or diagonal of a chess board. ...

UVA 11549 Calculator Conundrum

Alice got a hold of an old calculator that can display n digits. She was bored enough to come up with the following time waster. She enters a number k then repeatedly squares it until the result o...

UVA 11078 Open Credit System

In an open credit system, the students can choose any course they like, but there is a problem. Some of the students are more senior than other students. The professor of such a course has found qu...

uva 11462 Age Sort

输入一行0到100的整数,按照从小到大的顺序输出。 看似本题很简单,但是输入数据太大,25MB没有办法全部输入储存起来,所以用计数排序法。 虽然使用了c输入输出,还是超时,有好的方法请留言。 [codesyn...

Fill the Square

题目大意:在一个n*网格中填了一些大写字母,你的任务是把剩下的格子也填满大写字母,使得任意两个相邻格子的字母不同,如有多种填法,填字典序最小的一组。如有疑问,请留言。 Fill the Square Input: Stand...

Help is needed for Dexter

Description Problem H Help is needed for Dexter Time Limit: 3 Second Dexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned for her is quite eas...

Even Parity

Even Parity Time Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu [Submit]   [Go Back]   [Status] Description D Even Parity Input: Standard Input ...

Spreading the Wealth

Spreading the Wealth Time Limit: 6000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu [Submit]   [Go Back]   [Status]   Description  F. Spread...