Test instructions: Three hands of a clock keep turning, they get tired of it, and when they are closer to each other, they will be happy to ask how much time they happy in a day as a percentage of the total time.Analysis: Just find a minute, they happy the time, and then the clock every 12 hours equivalent to 43,200 seconds recovery. So the total time is 43,200 seconds, only ask for in this 43200 happy time, can calculate the percentage. Enumerate 12*60 minutes, see how many seconds in a minute
be calculated by the number divisible by 33, so that the number minus the starting days is the answer."Code Implementation"1 varP,e,i,d,x,k:longint;2 begin3 whileK=k Do4 begin5 Inc (k);6 readln (p,e,i,d);7 if(p=-1) and(e=-1) and(i=-1) and(d=-1) Then8 Break ;9 forX:=d+1 to 21252 DoTen ifABS (X-P)MoD at=0 Then One Break ; A whilex21252 Do - begin - ifABS (X-E)MoD -=0 Then//Note: First judgment, plus, there is limit data, the following same the Break ; -Inc (X, a
Let us use the letter B to denote "hundred", the letter S for "Ten", "12...N" to represent the single digit n (input Format: each test input contains 1 test cases, giving a positive integer n (Output format: one row for each test case output n in the specified format.Input Sample 1:234Output Example 1:BBSSS1234Input Sample 2:23Output Example 2:SS123Get the Hundred, 10-digit and single-digit numbers, then output.#include using namespacestd;intMain () {intN; intdigithundred, Digitten, DigiTone; w
Let us use the letter B to denote "hundred", the letter S for "Ten", "12...N" to represent the single digit n (input Format: each test input contains 1 test cases, giving a positive integer n (Output format: one row for each test case output n in the specified format.Input Sample 1:234Output Example 1:BBSSS1234Input Sample 2:23Output Example 2:SS123Idea: Simple simulation, basic math three-digit separation and control of special character output with branch statementsNote: The problem does not g
Title Description:For a given string (containing only ' z ', ' o ', ' J ' three characters), determine if he can AC.The rules for AC are as follows:1. Zoj can ac;2. If the string form is XZOJX, it can also be AC, where x can be n ' o ' or null;3. If AZBJC can AC, then Azbojac can also be AC, where a,b,c is n ' o ' or empty;Input:The input contains multiple sets of test cases, each with a string that contains only ' Z ', ' o ', ' J ' three characters, and the string length is less than or equal t
Question link: http://acm.hdu.edu.cn/showproblem.php? PID = 1, 5047
Solution Report: Ask a "M" type to divide the plane of a rectangle into a maximum of several blocks.
The input has n "M". Now the formula is 8 * n ^ 2-7 * n + 1, but the range of N is 10 ^ 12, as long as the square is within the range of long, what should we do with a large number?
I 've tried it all. It's strange that it will time out. I don't think it will happen according to estimation. Maybe it's because the intermediate res
Evaluate the knowledge of programming and convert characters and numbers. The format is to describe the conversion rules of plain text and dark text.
1 #include
1006 do the untwist
Poj 1006 physiological cycle [China residue theorem], poj1006
Physiological cycleTime Limit: 1000 MS Memory Limit: 10000 KTotal Submissions: 117999 Accepted: 37040Description
There are three physiological cycles in life: physical strength, emotional strength, and mental strength. The cycle is 23 days, 28 days, and 33 days. One day in each cycle is the peak. On the peak day, people will do well in the corresponding aspects. For example, at the peak of
POJ 1006-Biorhythms (China residue theorem)Biorhythms
Time Limit:1000 MS
Memory Limit:10000 K
Total Submissions:113666
Accepted:35658
DescriptionSome people believe that there are three cycles in a person's life that start the day he or she is born. these three cycles are the physical, emotional, and intellectual cycles, and they have periods of lengths 23, 28, and 33 days, respectively. there is one peak in eac
next Triple peak, in the form:Case 1: The next Triple peak occurs in 1234 days.Use the plural form ''days ''even if the answer is 1. Sample Input 0 0 0 00 0 0 1005 20 34 3254 5 6 7283 23 102 320203 301 40-1-1-1-1 Sample output Case 1: The next Triple peak occurs in 21252 days. case 2: The next Triple peak occurs in 21152 days. case 3: The next Triple peak occurs in 19575 days. case 4: The next Triple peak occurs in 16994 days. case 5: The next Triple peak occurs in 8910 days. case 6: The nex
largest weight of {3, 5, 2, 5, 3} is 3.
Inputthe first line contains an integer T (t
For each test case, the first line contains two integers n and M (n, m
In next N-1 lines, there are two integers A and B (1
The next M lines describe the operations you have to deal with. In each line the first integer is C (1
If C = 1, there are four integers x, y, a, B (1 If C = 2, there are three integers a, B, x (1 If C = 3, there are three integers a, B, d (1 If C = 4 (it is a query operation), there a
1006. Output in another format INTEGER (15) Time Limit 400 MS
The memory limit is 32000 kb.
Code length limit: 8000 B
Criterion author Chen, Yue
Let's use the letter B to represent "Hundred", the letter S to represent "Ten", and "12... N (
Input Format:Each test input contains one test case and a positive integer N (
Output Format:The output of each test case occupies one line and outputs N in the specified format.
Input Example 1:
234
Outp
Tags: des Io ar OS for SP on art BS Problem description The digital root of a positive integer is found by summing the digits of the integer. if the resulting value is a single digit then that digit is the digital root. if the resulting value contains two or more digits, those digits are summed and the process is repeated. this is continued as long as necessary to obtain a single digit.For example, consider the positive integer 24. adding the 2 and the 4 yields a value of 6. since 6 is a singl
Problem Description The three hands of the clock are rotating every second and meeting are many times. Finally, they get bored the ' this ' and each of the them would as the ' stay ' to away. A Hand is happy if it is in least D degrees from the rest. You are are to calculate the hands are happy.
Input the input contains many test cases. Each of the them has a single line with a real number D between 0 and, inclusively. The input is terminated with a D of-1.
Output for each D, print in a single
Xpe, warning 1006: Corrected invalid registration data
Bill Zhong (cudng@msn.com)
Date: 2007-08-27
The translation is used for academic exchange and belongs to the original version.
Symptom: one feature of xpe can be imported from the Registry Editor. reg file. unfortunately, the import process does not parse the correctness of each key. when you compile the image, the answer is: "Warning 1006: Corrected i
This article is reprinted, Source Address: http://blog.csdn.net/dongfengkuayue/article/details/6461298 poj 1006 biorhythms
Time limit:1000 ms
Memory limit:10000 K
Total submissions:78980
Accepted:23740
DescriptionSome people believe that there are three cycles in a person's life that start the day he or she is born. these three cycles are the physical, emotional, and intellectual cycles, and they have periods of l
VIP cannot be started normallyDescription: Our environment is 2 node RAC, and node 1 is down due to physical faults.In this case, I want to start the VIP of Node 1 from node 2 so that the single node is transparent to the user program.
[Oracle @ UNID02 ~] $ Crs_start ora. unid01.vipAttempting to start 'ora. unid01.vip 'on member 'unid02'Start of 'ora. unid01.vip 'on member 'unid02' failed.CRS-1006: No more members to consider
CRS-0215: cocould not sta
first, the requirements http://poj.org/problem?id=1006 biorhythms
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 124113
Accepted: 39154
DescriptionSome people believe that there be three cycles in a person's life that's start the day he or she's born. These three cycles is the physical, emotional, and intellectual cycles, and they have periods of lengths, D, and Ays, respectiv
Time: 2016-05-09-21:12:54
Title Number: [2016-05-09][51nod][1006 longest common sub-sequence LCS]
Main topic: [2016-05-09][51nod][1006 longest common sub-sequence lcs].md
Analysis: Dynamic Planning
DP[I][J] Represents the length of the longest common subsequence of string A in the first position, string B at position J
DP[I][J] = dp[i-1][j-1] + 1 if a[i] = = A[j]
else dp[i
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.