随笔分类 - 基础--模拟
摘要:题目 A:A - If at first you don't succeed... 分析: 按照题意模拟 代码: #include <bits/stdc++.h> using namespace std; int main(){ int a,b,c,n; scanf("%d%d%d%d",&a,&b
阅读全文
摘要:题目 A:A - Hit the Lottery 分析: 大水题 模拟 代码: #include <bits/stdc++.h> using namespace std; int main(){ int n; int x=0;scanf("%d",&n); while(n>=100){ x++; n
阅读全文
摘要:题目 题目 分析 算是个模拟吧 代码 cpp include using namespace std; map a[130]; char s[85]; int n[130]; int PosIs() { int len=strlen(s); f
阅读全文
摘要:题目 "题目" 分析 记录一下再预处理一下。 代码
阅读全文
摘要:题目 "题目" 分析 没什么好说的,字符串拼接一下再放进map。其实可以直接开俩数组排序后对比一下,但是我还是想熟悉熟悉map用法。 呃400ms,有点慢。 代码
阅读全文
摘要:题目 "题目" 分析 真的快疯了,中午交了一题WA了好久,最后发现最后一个数据不能加\n,于是这次学乖了,最后一组不输出\n,于是WA了好几发,最后从Udebug发现最后一组是要输出的!!! 代码 cpp include include inc
阅读全文
摘要:题目描述 在二维坐标系里,有N个金币,编号0至N-1。初始时,第i个金币的坐标是(Xi,Yi)。所有的金币每秒向下垂直下降一个单位高度,例如有个金币当前坐标是(xf, yf),那么t秒后金币所在的位置就是(xf, yf-t)。初始时,FJ在(0,0)坐标处,FJ每秒只能向左移动一个单位距离或者向右移
阅读全文

浙公网安备 33010602011771号