这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
进入主站 权限多次比赛违规
因学术不端而棕名惩罚 14 天
在讨论《洛谷基础赛 #28 & KenOI Round 1 赛时答疑帖》回复:
qpx4zr
在讨论《关于洛谷公开比赛作弊申诉的若干规定》回复:
qpqp!!!
#### 前情提要 ##### 本人赛时这道题的分数是25*0=0分!!! ### 正题 #### 题目分析 题目要求从1到n的整数中选取尽可能多的数,使得任意两个数互质(两个数互质当且仅当它们没有共同的质因数)。我们要找到一种选取策略,使得选取的数的数量最大化。 #### 解题思路 贪心策略选取所有质数,因为这些…
在讨论《60分,帮我,求求了》回复:
十年OI一场空,不用高精见祖宗
在文章《题解:P11961 [GESP202503 五级] 原根判断》发表评论:
满分我的一辈子!!!
在讨论《MX-X20/J23 作弊名单(棕108,封17)》回复:
qp
在讨论《TFXOI Round #3赛后总结帖 & 致歉帖》回复:
qp
在讨论《SCP-J1/S1 作答数据统计》回复:
qp
在文章《题解:P13683 【MX-X16-T1】「DLESS-3」XOR and Greater Sum》发表评论:
我的也是过不了
### 解题思路 这道题的核心在于利用异或的性质来快速判断是否存在满足条件的子序列。关键结论如下: 1. 总异或和性质 :设整个序列的异或和为 ans 。若 ans != 0 ,则必然存在解;若 ans == 0 ,则无解。 2. 证明 : 当 ans != 0 时,我们可以选择所有数 ,此时选出数的异或和为 ans…
在文章《P1019 题解》发表评论:
码风码风!!!
在文章《题解:P11506 [ROIR 2017 Day 1] 校园》发表评论:
%%%
在讨论《83分求调》回复:
谢谢大佬,已关。 此贴结。
在讨论《RemoteJudge 服务中断情况公告》回复:
hp哀悼
在讨论《70分求调必关》回复:
建议你使用栈这个好东西
在讨论《求助》回复:
@[jeson028](https://www.luogu.com.cn/user/1087605) 把第七行的string s1=s.substr(1,s.size()/2); 改成string s1=s.substr(0,s.size()/2); [AC](https://www.luogu.com.cn/reco…
#### 就最后一个点题错了 ```cpp #include using namespace std; int a[1005]; int main() { int n,x=0; cin>>n; a[1]=1; a[2]=1; for(int i=3;i [83](https://www.luogu.com.cn/rec…
在讨论《90,求调》回复:
```cpp #include using namespace std; int c[10000];//数组放外面 int main() { int a,b,l,m,cut=0;//初始化 cin>>l>>m; for(int i=1;i >a>>b; for(int j=a;j<=b;j++) { c[j]=1; }…
**P12418** [题目传送门]() 思路其实~~很难~~很简单,如果 $m = 1$ 或 $n = 1$ ,那就直接输出1,否则输出 $min(n,m) + 1$ 。 **代码** ```cpp #include using namespace std; int main() { int t;//共有t组数据 c…
在讨论《【LGR-(-25)】2025 年洛谷愚人节比赛 赛后总结》回复:
qp
```cpp #include using namespace std; bool vis[1000000050]; int main() { int n,l; cin>>n>>l; for(int i=1;i >s>>e; for(int j=0;j<e-s;j++) { vis[s+j]=true; } } int…
在讨论《3 月 4 日更新公告》回复:
qp
###### ~~来凑一片题解~~ ```cpp #include using namespace std; int a[105],vis[105];//记录有没有至少被访问过一次 int main() { int n,k; cin>>n>>k;//输入 for(int i=1;i >a[i]; if(!a[i])vi…
在讨论《RE*10求解》回复:
```cpp #include using namespace std; string a[310]; int main() { int i=0; string s; while(cin>>s) { if(s.size()!=0) { a[i]=s; i++; } } for(i=0;i using namespace…
~~**这是我第一次写题解。**~~ ```cpp #include using namespace std; int a[11],b[11]; int main() { int n,t,ans=0; cin>>n>>t;//输入 for(int i=1;i >a[i];//输入a数组 ans+=a[i];//计算总和…
```cpp #include using namespace std; bool vis[1000000050]; int main() { int n,l; cin>>n>>l; for(int i=1;i >s>>e; for(int j=0;j<e-s;j++) { vis[s+j]=true; } } int…