关闭

I - Foreign Exchange UVA - 10763

Your non-profit organization (iCORE - international Confederation of Revolver Enthusiasts) coordinatesa very successful foreign student exchange program. Over the last few years, demand hassky-rockete...
阅读(87) 评论(0)

H - Compound Words UVA - 10391

You are to find all the two-word compound words in a dictionary. A two-word compound word is aword in the dictionary that is the concatenation of exactly two other words in the dictionary.InputStandar...
阅读(88) 评论(0)

UVA-10935Throwing cards away I

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:Throw away th...
阅读(68) 评论(0)

UVA-1583Digit Generator

For a positive integer N, the digit-sum of N is defined as the sum of N itself and its digits. When Mis the digitsum of N, we call N a generator of M.For example, the digit-sum of 245 is 256 (= 245 + ...
阅读(61) 评论(0)

UVA10082WERTYU

A common typing error is to place thehands on the keyboard one row to theright of the correct position. So ‘Q’ istyped as ‘W’ and ‘J’ is typed as ‘K’ andso on. You are to decode a message typed in thi...
阅读(68) 评论(0)

UVA-70474Where is the Marble?

Raju and Meena love to play with Marbles. They have got a lot ofmarbles with numbers written on them. At the beginning, Raju wouldplace the marbles one after another in ascending order of the numbersw...
阅读(51) 评论(0)

UVA-455Periodic Strings

A character string is said to have period k if it can be formed by concatenating one or more repetitionsof another string of length k. For example, the string ”abcabcabcabc” has period 3, since it is ...
阅读(61) 评论(0)

1040: 数列求和1

1040: 数列求和1 Time Limit: 1 Sec  Memory Limit: 128 MB Submit: 11517  Solved: 8349 SubmitStatusWeb Board Description 输入一个整数n,输出数列1+1/3+1/5+……前n项的和。 Input 输入只有一个正整数n。 Output 结果保留2为小...
阅读(63) 评论(0)

1039: n个数求和

1039: n个数求和 Time Limit: 1 Sec  Memory Limit: 30 MB Submit: 13244  Solved: 8956 SubmitStatusWeb Board Description 输入一个整数n和n个整数,输出这n个整数的和。 Input  输入有两行:第一行是一个正整数n,第二行是n个整数。 Outpu...
阅读(65) 评论(0)

1038: 绝对值最大

1038: 绝对值最大 Time Limit: 1 Sec  Memory Limit: 30 MB Submit: 14958  Solved: 7865 SubmitStatusWeb Board Description 输入3个整数,输出绝对值最大的那个数。 Input 输入包含3个int范围内的整数,用空格隔开。 Output 输出...
阅读(65) 评论(0)

1037: 四则运算

1037: 四则运算 Time Limit: 1 Sec  Memory Limit: 30 MB Submit: 30796  Solved: 7964 SubmitStatusWeb Board Description 给你一个简单的四则运算表达式,包含两个实数和一个运算符,请编程计算出结果 Input 表达式的格式为:s1 op s2, s1和s2是两个...
阅读(97) 评论(0)

1204: 剔除相关数

1204: 剔除相关数 Time Limit: 1 Sec  Memory Limit: 128 MB Submit: 163  Solved: 80 SubmitStatusWeb Board Description 一个数与另一个数如果含有相同数字和个数的字符,则称两数相关。现有一堆乱七八糟的整数,里面可能充满了彼此相关的数,请你用一下手段,自动地将其剔除。 Inp...
阅读(62) 评论(0)

2170: DML和回文

2170: DML和回文 Time Limit: 1 Sec  Memory Limit: 128 MB Submit: 78  Solved: 11 SubmitStatusWeb Board Description DML有个只有小写字母的字符串。他想从字符串中更改一个字符,以便让这个字符串成为回文串。 回文串是一个字符串,从前往后读和从后往前读都相同,例如串 “z” ...
阅读(94) 评论(0)

1036: 某年某月有多少天

1036: 某年某月有多少天 Time Limit: 1 Sec  Memory Limit: 30 MB Submit: 14080  Solved: 8493 SubmitStatusWeb Board Description 给你一个年份和月份,求该月有多少天 Input 一个年份(正整数),一个月份(1-12),中间有一个空格隔开 Output ...
阅读(129) 评论(0)

1035: 分段函数求值

1035: 分段函数求值 Time Limit: 1 Sec  Memory Limit: 30 MB Submit: 11843  Solved: 8191 SubmitStatusWeb Board Description 已知:y是x的函数,  当x 当x>=-2,且x 当x>=3时,y=3x+4 Input 任意输入一个整数x。 Output ...
阅读(74) 评论(0)
123条 共9页首页 上一页 ... 6 7 8 9 下一页 尾页
    个人资料
    • 访问:8439次
    • 积分:1244
    • 等级:
    • 排名:千里之外
    • 原创:121篇
    • 转载:2篇
    • 译文:0篇
    • 评论:0条
    文章分类