随笔分类 -  思维题

摘要:题目 For a given positive integer n, please find the saallest positive integer x that we can find an integer y such that $y^2 = n +x^2$. 输入 The first li 阅读全文
posted @ 2020-05-24 16:22 YouXam 阅读(138) 评论(0) 推荐(0)
摘要:题目 You are given a positive integer $N(1≦N≦10^{18})$. Find the number of the pairs of integers $u$ and $v (0≦u,v≦N)$ such that there exist two non-neg 阅读全文
posted @ 2020-05-09 21:45 YouXam 阅读(358) 评论(0) 推荐(0)
摘要:题目 Some time ago Mister B detected a strange signal from the space, which he started to study. After some transformation the signal turned out to be a 阅读全文
posted @ 2020-05-08 20:11 YouXam 阅读(173) 评论(0) 推荐(1)
摘要:题目 B君和G君聊天的时候想到了如下的问题。 给定自然数l和r ,选取2个整数$x,y$满足$l int main() { int t; scanf("%d", &t); while (t ) { long long a, b, ans = 0; scanf("%lld%lld", &a, &b); 阅读全文
posted @ 2020-05-06 20:00 YouXam 阅读(106) 评论(0) 推荐(0)
摘要:"洛谷链接" 题目 Although Inzane successfully found his beloved bone, Zane, his owner, has yet to return. To search for Zane, he would need a lot of money, o 阅读全文
posted @ 2020-04-29 23:22 YouXam 阅读(170) 评论(0) 推荐(0)
摘要:"Codeforces 1215D Ticket Game 原题" 题目 Monocarp and Bicarp live in Berland, where every bus ticket consists of n digits (n is an even number). During th 阅读全文
posted @ 2020-04-23 09:56 YouXam 阅读(253) 评论(0) 推荐(1)
摘要:题目 Slastyona and her loyal dog Pushok are playing a meaningless game that is indeed very interesting. The game consists of multiple rounds. Its rules 阅读全文
posted @ 2020-04-21 22:46 YouXam 阅读(149) 评论(0) 推荐(0)
摘要:题目 An army of ants walk on a horizontal pole of length l cm, each with a constant speed of 1 cm/s. When a walking ant reaches an end of the pole, it i 阅读全文
posted @ 2020-04-14 15:07 YouXam 阅读(266) 评论(0) 推荐(0)
摘要:The Japanese government plans to increase the number of inbound tourists to forty million in the year 2020, and sixty million in 2030. Not only increa 阅读全文
posted @ 2020-04-10 20:03 YouXam 阅读(341) 评论(0) 推荐(3)
摘要:题目 NEKO ΦωΦ has just got a new maze game on her PC! The game's main puzzle is a maze, in the forms of a $2×n$ rectangle grid. NEKO's task is to lead a 阅读全文
posted @ 2020-04-04 18:22 YouXam 阅读(239) 评论(0) 推荐(0)