摘要:
There are a group of students. Some of them may know each other, while others don't. For example, A and B know each other, B and C know each other. Bu 阅读全文
摘要:
ZOJ Monthly, March 2018 Happy Sequence Input There are multiple test cases. The first line of the input contains an integer (about 50), indicating the 阅读全文
摘要:
Input Output For each test case output one line containing one integer, indicating the integer which appears in both sequences. Sample Input Sample Ou 阅读全文
摘要:
The bored BaoBao is playing a number game. In the beginning, there are numbers. For each turn, BaoBao will take out two numbers from the remaining num 阅读全文
摘要:
windy定义了一种windy数。不含前导零且相邻两个数字之差至少为2的正整数被称为windy数。 windy想知道,在A和B之间,包括A和B,总共有多少个windy数? Input 包含两个整数,A B。 Output 一个整数 Sample Input【输入样例一】 1 10 【输入样例二】 2 阅读全文
摘要:
Oleg writes down the history of the days he lived. For each day he decides if it was good or bad. Oleg calls a non-empty sequence of days a zebra, if 阅读全文
摘要:
Hacker Zhorik wants to decipher two secret messages he intercepted yesterday. Yeah message is a sequence of encrypted blocks, each of them consists of 阅读全文