Question 96: Binary Numbers

    [Plain] # include # Include Int main (){Int n;Int num;Int count;Int flag;  Scanf ("% d", & n );While (n --){Count = flag = 0;Scanf ("% d", & num );While (num){If (num % 2 = 1){If (flag){Printf ("");}Printf ("% d", count );Flag = 1;}Count ++;Num/

Question one hundred and one: Sorting of ASCII codes

[Plain] Description After three characters are entered, the three characters are output in ascending order of the ASCII code of each character. Input There are multiple groups of input data. Each group occupies one row and consists of three

Question one hundred and two: Determination of prime numbers

[Plain] Description For the expression n ^ 2 + n + 41, when n is an integer (including x, y) in the range of (x, y) (-39  Input There are multiple groups of input data. Each group occupies one row and consists of two integers x and y. When x = 0 and

Question one hundred and three: sequence of numbers!

[Plain] Description There are n (n  Input The input data contains multiple test instances. Each group of data consists of two rows. The first row is n and m, and the second row is a series of ordered n numbers. If n and m are both 0, the end of the

Question 1807: Element insertion

Print? Description  Mr. trueMr. true is a super Superman who is engaged in competitions in high school and universities, and MS also needs such talents.So, needless to say, when he goes to the interview, he will get a little bit of privilege, that

Question one hundred and nineteen: simple Encoding

[Plain] Description  Translate a string of text into a password. The password rules are as follows: The original lowercase letters are all translated into uppercase letters, and all uppercase letters are translated into lowercase letters. The

Question one hundred and twenty: the lucky spot

[Plain] Description It was clearly because he was born in March 3, 1993. The year of his birth, the number of months and the date all had numbers 3. He thought that the number containing numbers 3 was his lucky number, he even liked the number of

Question one hundred and thirty-three: Not easy Series II

Description You are not easy to live, I am not easy to live, and he is not easy to live. However, if you read the following story, you will know that it is not easier to have an old man than you. Xu Lahan (Grand Xu Donghai, referred to as XDH) in

Question one hundred and thirty-nine: Functions cos () and sin ()

[Plain] # include # Include # Include  # Define PI 3.1415926 Int factorial (int num );Double COS (double x );Double SIN (double x ); Int main (){Double x;Printf ("Please enter the Angle:"); // the Angle required by the inputScanf ("% lf", & x

Question one hundred and forty: Saddle Point

Description Find the "Saddle Point" with m rows and n columns of two-dimensional Array, that is, the element at this position is the largest on this row, and the element on this column is the smallest, where 1 Input The input data has multiple rows.

Question one hundred and fifty-one: haelection actress

PS: You can submit program 1 with G ++, but you cannot submit program 2 with GCC. The difference between program 1 and Program 2 is to change the absolute value function fabs () to abs (). (If the gods know, explain the reasons. Thank you

Several small algorithm questions about strings: minimum K Number, maximum sum of consecutive sub-arrays, full string arrangement, array cyclic shift

Minimum K count: Method 1: With the modified quick sorting, the split function remains unchanged. The index of the number returned after the split exits if it is equal to k-1 or k, Greater than k, recursive left Less than k, the right side of

An algorithm question about square number in C Language

This is a typical C language algorithm. The question is to give a given graph. Based on the logo in this graph, we can find the total number of squares that this graph can contain. For example, the following figure:   The following is a solution:

C Language Project-instructor information/Student Achievement Management System

The following code is pasted: void add_tea (Teacher tea []) {int I = 0, j, num; char str [5]; if (numtea! = 0) {printf ("cover the current record? (Y/n) \ n "); gets (str); if (str [0] = 'y' | str [0] = 'y ') I = 0; else I = numtea;} printf ("Please

Handle CIDR Block errors of vfprintf in C Language

The CIDR Block Error of C language must have been encountered by everyone. Sort it out for learning. Today, I executed a program. after a long time of running, the segment was incorrect. I located it and it turned out to be a problem with fprintf,

Understanding of linked list operations and data structures

Node operations because the linked list is n discrete nodes connected to each other through pointers, the operations related to the linked list are mainly achieved through the header pointer (the address of the header node is stored) operations on

Operations related to Static cyclic queue

Cyclic queue Queues are generally divided into two categories: one is dynamic chained Queue (the core idea is linked list, but some functions of linked list are missing) and the other is static (sequential) queue (its core is array implementation.

Memory Allocation of C-language Variables

I read a post about C language memory allocation written by someone tonight and found that I really want to find it, so I almost got my favorite...Let's take a look at two sections of code:   Char * toStr () {char * s = "abcdefghijkl"; return s;}

Question one hundred and twenty-seven: Keep on Truckin

Description Boudreaux and Thibodeaux are on the road again... "Boudreaux, we have to get this shipment of mudbugs to Baton Rouge by tonight! " "Don't worry, Thibodeaux, I already checked ahead. There are three underpasses and our 18-wheeler will fit

Question one hundred and twenty-nine: Archimedes features

Description The so-called "Archimedes feature" is a property that guarantees zero 0 to make aM> B.Write a program that outputs the smallest M for input a and B. Input Enter two integers a and B, which must be 0 Output Output the smallest

Total Pages: 275 1 .... 227 228 229 230 231 .... 275 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.