# Sixth annual Blue Bridge Cup competition individual race (software Class) C++a Group Problem Solving report

Source: Internet
Author: User
Tags ming pear

"First question"
Equation Integer Solution

Equation: a^2 + b^2 + c^2 = 1000
(or see "Figure 1.jpg")
Does this equation have an integer solution? Yes: A,b,c=6,8,30 is a set of solutions.
Can you figure out a different set of solutions?

Please fill in the smallest number in the solution.

Note: You should submit an integer, do not fill in any superfluous content or descriptive text.

"The answer": Violence calculates another solution for the ten , so the smallest number is

"Second question"
Galaxy bomb

In the vast space of the X galaxy, many X-star man-made "bombs" were floated to serve as signposts in the universe.
Each bomb can be set to explode after a few days.
For example: The Alpha bomb was placed on January 1, 2015 and timed for 15 days, then it exploded on January 16, 2015.
There is a beta bomb, placed on November 9, 2014, timed for 1000 days, please calculate the exact date it exploded.

Please fill in the date in the format YYYY-MM-DD the 4-bit year 2-digit month 2-bit date. For example: 2015-02-19
Please write strictly in the format. No other text or symbols can appear.

"Answer" analysis is not known, (the problem on both sides of the scene hand: to find out 2017-08-02, do not know whether it is correct )

"The third question"

Wonderful numbers.

Xiao Ming found a wonderful figure. Its square and cubic meters just take the 0~9 10 numbers each and use them only once.
Can you guess how much this number is?

Please fill in this number, do not fill in any superfluous content.

"Question fourth"

In-grid output

The Stringingrid function prints the specified string in a grid of a specified size.
Requires the string to be centered in a horizontal, vertical, two direction.
If the string is too long, it is truncated.
If you can't just center it, you can do it slightly to the left or to a point.

The following program implements this logic, please fill in the missing code in the underlined section.

```#include <stdio.h> #include <string.h> void stringingrid (int width, int height, const char* s) {    int i,k;
Related Keywords:
Related Article

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.