随笔分类 - 思维题
摘要:题目 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
阅读全文
摘要:题目 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
阅读全文
摘要:题目 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
阅读全文
摘要:题目 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);
阅读全文
摘要:"洛谷链接" 题目 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
阅读全文
摘要:"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
阅读全文
摘要:题目 Slastyona and her loyal dog Pushok are playing a meaningless game that is indeed very interesting. The game consists of multiple rounds. Its rules
阅读全文
摘要:题目 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
阅读全文
摘要: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
阅读全文
摘要:题目 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
阅读全文

浙公网安备 33010602011771号