摘要:
本文只是自己存的模板,来源于https://www.cnblogs.com/xenny/p/9801703.html; 想学习线段树的请前往大佬的博客。 #include<bits/stdc++.h> using namespace std; const int maxn=100005; int a 阅读全文
摘要:
A. Red Versus Blue Team Red and Team Blue competed in a competitive FPS. Their match was streamed around the world. They played a series of nn matches 阅读全文
摘要:
快速幂: long long fastPower(long long base, long long power) { long long result = 1; while (power > 0) { if (power & 1) { result = result * base % 1000; 阅读全文
摘要:
A. GCD vs LCM You are given a positive integer nn. You have to find 44 positive integers a,b,c,da,b,c,d such that a+b+c+d=na+b+c+d=n, and gcd(a,b)=lcm 阅读全文
摘要:
A. Vasya and Coins Vasya decided to go to the grocery store. He found in his wallet aa coins of 11 burle and bb coins of 22 burles. He does not yet kn 阅读全文
摘要:
A. Marin and Photoshoot Today, Marin is at a cosplay exhibition and is preparing for a group photoshoot! For the group picture, the cosplayers form a 阅读全文