算法
文章平均质量分 62
WE 957
假如我的内容对您有帮助,那是我的荣幸!
展开
-
2018山东省ACM省赛Bullet
BulletDescriptionIn GGO, a world dominated by gun and steel, players are fighting for the honor of being the strongest gunmen. Player Shino is a sniper, and her aimed shot kills one monster at a time. Now she is in an n×n map, and there are monsters in原创 2022-04-02 20:58:39 · 554 阅读 · 0 评论 -
欧拉筛+欧拉函数
在使用欧拉筛筛选素数的同时,将欧拉函数一同求解Code:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e2 + 10;int pri[N],phi[N];bool vis[N];void work() { phi[1] = 1; //pri[0] 当做计数器 for(int i=2; i<N; i++) { if(!vis[i]) phi[i] = i原创 2021-11-13 19:36:56 · 239 阅读 · 0 评论 -
Beer Can Game
Beer Can GameDescriptionThe Beer Can Rows game is played by a single player whose goal is to modify a given arrangement of given beer cans and wooden tokens in the minimum number of moves to obtain an arrangement satisfying a specific condition.A beer原创 2021-09-12 11:24:40 · 103 阅读 · 0 评论