摘要:
这一系列的练习主要在Virtual Judge上进行,题目为小白书上的题目推荐。UVa 10055求两方军队人数的差值,直接相减即可。不过要注意两个数的大小关系。#include using namespace std;int main(){ long long x, y; while(cin >>... 阅读全文
摘要:
Description描述CIA has decided to create a special telephone directory for its agents. The first 2 pages of the directory contain the name of the direct... 阅读全文
摘要:
Description描述You are given natural numbers a and b. Find ab-ba.给定自然数a、b,求ab-ba。Input输入Input contains numbers a and b (1≤a,b≤100).输入文件包含a和b(0#include u... 阅读全文
摘要:
Description描述Nearly prime number is an integer positive number for which it is possible to find such primesP1andP2that given number is equal toP1*P2. ... 阅读全文
摘要:
Description描述For given number N you must output amount of N-digit numbers, such, that last digits of their square is equal to 987654321.对于任意给定的数N,你需要输... 阅读全文
摘要:
Description描述Petya is well-known with his famous cabbage patties. Petya's birthday will come very soon, and he wants to invite as many guests as possi... 阅读全文
摘要:
Description描述Little Johnny likes to draw a lot. A few days ago he painted lots of straight lines on his sheet of paper. Then he counted in how many zo... 阅读全文