Title Link: http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1266Descriptionfor an integerx, rememberxThe right-to-left members are respectively the first1bit, section2bit, ... IfxThe sum of the numbers on the odd digits minus the sum of the numbers on the even digits can be Onedivisible, thenxyou can be Onedivisible. Input The first line of the input data contains an integer t (1 t one row for each set of test data, with a number of digits not exceeding - a positive integer of a bit
data, the first row contains5an integerN (1 , meaning ibid. The next line containsNa no greater than -A positive integer, which in turn describes the weight of each table tennis. Outputfor each set of data, output three integers in one line, separated by spaces, indicating N a ball of Samsung, two stars and a star of the ball each have how many. Sample Input25 10 1 2 36 7 9 9 106 10 1 2 311 12 12 13 14 8Sample Output3 0 11) 3 1HINTSourceThe Seventh annual College student Program Design Competit
Title Link: http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1407Descriptiontwo pointsA,Bare doing uniform motion. Give theT= 0 MomentsA,Bthe coordinates, andA,Bthe speed, calculationT≥0 O'Clock the minimum value of the distance between two points. Inputthe first line of input contains an integerT(1≤T≤ $), indicating that there are altogetherTGroup test Data. for each set of test data, the first row consists of 4 integersxA,yA,vAx,vAy( -103≤xA,yA,vAx,vAy≤Ten3), indicatingT= 0 MomentsAthe coordin
the swollen level AI and water level bi for the flood of the first I, and count how many bridges have been flooded at least k times. The initial water level is 1, and the swollen water level of each flood must be greater than the water level of the last flood.InputThe input file contains up to 25 sets of test data. The first behavior of each group of data is three integers n, m, K (1OutputFor each set of data, output the number of bridges that have been flooded at least k times.Sample Input2 2
Owners" of 2 lives, and a "whirlwind effect" followed by 2 life-threatening "slave-owners" and 1 1-point life "terror slaves".In this series of topic 2 we have learned how to calculate how many "horrible slave owners" will be left after the N-whirlwind effect. Now that the game has a bug, the number of slave owners on the field is no longer limited by the 7 limit. There are some 1 lives left on the field, some 2 lives, some 3 life slaves, and now ask the slave owners to go through the N-whirlwi
Test instructions: Needs to be repaired from (0,0) point to (x, y)Where there are n and y axes parallel to the riverUnit cost of road repairing C1 repair Bridge Unit Cost C2Q What is the minimum total cost?Idea: Merge all the riversThe length of the bridge repeatedlyFind the minimum cost#include CSU 1548:design Road (three points)
Topic Link: Click to open the linkTest instructionsA direction graph for a given n points (1 is the starting point and N is the end point)Each of the following lines gives the degree of a point and the next point to which it is connected.The nth point is not out of the degreeThe picture is like this: 1->2, 1->3, 2->3First question:If there is a scheme that allows this person to enter a point and no longer reach the end of the output PRISON, otherwise the output pardonSecond question:If this pers
//Dfs Augmentation Road the {Bayi for(intI=1; i) the { the if(edge[x][i]!Vis[i]) - { -vis[i]=1; the if(lin[i]==-1|| DFS (Lin[i]))//I have no matching or matching can get the augmented path the { thelin[i]=x; the return true; - } the } the } the return false;94 } the the intMain () the {98 while(SCANF ("%d", n)! =EOF) About { -Memset (Edge,0,size
Test instructions: Give some numbers if they can be divisible by 6 output beer!! Otherwise output boom!!Idea: Save 0 to 9 with a three-dimensional arrayViolence out of every number of valuesFind the results(This is a bit of a hole in the 1 number may not exist 2 number of uncertainties)#include CSU 1395:timebomb (Analog)
TuneUp Utilities, believe that friends familiar with the software should have heard, the software from Germany, is recognized in the world's best system tuning tool, known as "PC system maintenance Swiss Army knife." At present, TuneUp Utilities version 2011 has been released, this issue will lead us to try TuneUp Utilities 2011, to see the world's top system opt
Evaluation Address: https://cn.vjudge.net/problem/CSU-1632Descriptionin the string, all occurrences of at least 2 number of sub-strings of the secondInputfirst act an integer T (t represents the number of use case groups, with each group of use cases occupying a length of 100000 the stringOutputFor each set of use cases, output the number of substrings that appear at least two times in the stringSample Input3AabaabAaaaaAaAaASample Output545SolutionAns
CSU 1337Time Limit:1000MSMemory Limit:131072KB64bit IO Format:%LLD %lluDescriptionFlt theorem: When n>2, the indefinite equation AN+BN=CN has no positive integer solution. For example, A3+B3=C3 does not have a positive integer solution. To enliven the atmosphere, we might as well have a funny version: Change the equation to a3+b3=c3, so there are solutions, such as a=4, B=9, c=79 43+93=793.Enter two integers x, y, to satisfy the xInputEnter up to 10 s
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.