- 博客(5)
- 收藏
- 关注
原创 UVa 1152 4 Values whose Sum is 0
The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d) ∈ A × B × C × D are such that a + b + c + d = 0. In the following,...
2018-08-20 19:35:10 93
原创 UVA - 712 S-Trees
题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=653 Sample Input 3 x1 x2 x3 00000111 4 000 010 111 110 3 x3 x1 x2 00010011...
2018-08-13 10:19:39 103
原创 HDU - 2553 N皇后问题
Problem Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input 共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。 Output 共有若干行,每行一个正整数,表示对应输入行的皇后的...
2018-08-06 08:39:44 107
原创 UVA - 10763 Foreign Exchange
Your non-profit organization (iCORE - international Confederation of Revolver Enthusiasts) coordinates a very successful foreign student exchange program. Over the last few years, demand has sky-rocke...
2018-07-28 09:44:26 104
原创 UVA - 455 Periodic Strings
A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example, the string ”abcabcabcabc” has period 3, since it is...
2018-07-22 21:55:31 123
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人