摘要:
本篇为个人练习记录 阅读全文
摘要:
传送到AtCoder Beginner Contest 134 A.Dodecagon 给你一个r,让你输出$3\times r^2$ B.Golden Apple 给你N个苹果树,告诉你每个工人的工作范围$i-d \le range \le i+d$,问你把所有的树采摘一遍最少要几个工人。直接输出 阅读全文
摘要:
A传送 B传送 A Changing Volume AC代码 #include <bits/stdc++.h> using namespace std; int t; int a, b; int main() { int t; scanf("%d", &t); while(t --) { scanf 阅读全文
摘要:
A题传送 B题传送 A. Single Push AC代码 #include <bits/stdc++.h> using namespace std; const int N = 1e5 + 3; int a[N], b[N]; int n, t; int main() { scanf("%d", 阅读全文
摘要:
原题传送门 题面 Mobile robots are nowadays commonly used in various industrial and research sites. You are in charge of controlling \(n\) mobile robots that 阅读全文
摘要:
long long GetInverse(long long a, long long mod) { long long ans = 1, n = mod - 2; a %= mod; while (n) { if (n & 1) { ans = ans * a % mod; } n >>= 1; 阅读全文
摘要:
点我传送 题面: In the Kingdom of Black and White (KBW), there are two kinds of frogs: black frog and white frog. Now \(N\) frogs are standing in a line, som 阅读全文
摘要:
Educational Codeforces Round 103 (Rated for Div. 2) A. K-divisible Sum) 题面 You are given two integers \(n\) and \(k\). You should create an array of \ 阅读全文