"Money, money, money"

Source: Internet
Author: User

Acdream1408: http: // 115.28.76.133/problem? PID = 1, 1408

Question: Let's give you an X, so that you can construct a and B. Yes, Na + BM can form all the numbers greater than X. A> 1, B> 1, but cannot form X.

Question: Sb at the beginning. All numbers (> = 2) can be composed of two and an odd number. SO 2 and x + 2 are a solution. And if X is an even number, this is unsolvable.

1 # include <iostream> 2 # include <algorithm> 3 # include <cstdio> 4 # include <cstring> 5 # include <vector> 6 using namespace STD; 7 int main () {8 long a; 9 While (~ Scanf ("% LLD", & A) {10 if (a % 2 = 0) printf ("0 0 \ n "); 11 else {12 printf ("% d % LLD \ n", 2, A + 2); 13} 14 15} 16 17 18}
View code

 

"Money, money, money"

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.