随笔分类 - codeforces
摘要:A. Password 计算出现的数,从这些数中任意选两不同的,每种组合6种方案,计算输出即可 #include<bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; for
阅读全文
摘要:A. Number Replacement 模拟 易发现一个数字只能对应一个字母,mp统计判断一下即可 #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int a[N]; map<int,char> mp; int m
阅读全文
摘要:A. Maxmina 显然结果全为0时,结果为NO,若有1,我们通过操作1使长度变为k,里面包含至少1,通过操作2,结果即为YES 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=2e5+10; 4 int a[N]; 5
阅读全文

浙公网安备 33010602011771号