上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: enmmmmmm】 大部分好像除了最后一个思考题都很简单 代码如下 至于最后一个思考题 浮点数陷阱 把 10 改成10.0 10.000000 啥的都没用 脑阔疼 搜了下发现了这个博客 http://blog.sina.com.cn/s/blog_6da76f9b0100yr8d.html 浮点数陷 阅读全文
posted @ 2018-10-10 22:49 163467 阅读(875) 评论(0) 推荐(1) 编辑
摘要: 首先上两段代码 上面的会WA 下面的AC ,找了找 ,发现只是定义变量的时候全局和局部的区别而已 想交试试的话 题目链接 http://codeforces.com/contest/1028/problem/A #include<bits/stdc++.h> int v[120][120]; int 阅读全文
posted @ 2018-10-09 08:48 163467 阅读(3030) 评论(0) 推荐(0) 编辑
摘要: 韩信点兵的小故事 3人报数 五人报数 七人报数 各余a b c,求军队可能最少人数 物不知其数问题出自一千六百年前我国古代数学名著《孙子算经》.原题为:”今有物不知其数,三三数之二,五五数之三,七七数之二,问物几何?” 例如我国明朝数学家程大位在他著的《算法统宗》(1593年)中就用四句很通俗的口诀 阅读全文
posted @ 2018-10-09 00:20 163467 阅读(316) 评论(0) 推荐(0) 编辑
摘要: A/B Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 6867 Accepted Submission(s): 5457 Problem De 阅读全文
posted @ 2018-10-09 00:04 163467 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 博弈论 真的很有趣 ,回想起 前两天多校一道题的题解 所有不公平的游戏都存在必胜的玩法 与人斗其乐无穷 https://vjudge.net/contest/241983#overview 博弈论专题 一)巴什博奕(Bash Game):有n个石头,Alice和Bob轮流取石头,每次取的石头不能超过 阅读全文
posted @ 2018-08-07 15:35 163467 阅读(347) 评论(0) 推荐(0) 编辑
摘要: A题Absolute #include <bits/stdc++.h> using namespace std; #define rep(i,a,n) for (int i=a;i<n;i++) #define per(i,a,n) for (int i=n-1;i>=a;i--) #define 阅读全文
posted @ 2018-07-25 23:42 163467 阅读(464) 评论(2) 推荐(0) 编辑
摘要: 2018-07-26 00:26:29http://acm.hdu.edu.cn/contests/contest_show.php?cid=802 被三整除一定是三个数相等,其次是被2整除且被四整除的数可取 s=2x1; s=4x2; s=x1+2x2 A题 // A #include <bits 阅读全文
posted @ 2018-07-23 20:47 163467 阅读(154) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cassert> //算法竞赛入门经典4-4 #include <cstdio> #include <ctime> //#include <size> typedef long long LL; using namespace std; i 阅读全文
posted @ 2018-07-09 15:12 163467 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 977A - Wrong Subtraction http://codeforces.com/contest/977/problem/A 简单题 题意如果尾数为0 除10 否则-1 977B - Two-gram http://codeforces.com/contest/977/problem/B 阅读全文
posted @ 2018-06-05 23:10 163467 阅读(133) 评论(0) 推荐(0) 编辑
摘要: /* 水题 但是这个PE让我真的很气 最后一项不能有空格 */ #include <stdio.h> int main(void) { int n, m; while(scanf("%d%d", &n, &m) != EOF) { int sum=0, ai=2, count=0, i; for(i 阅读全文
posted @ 2018-01-24 23:56 163467 阅读(155) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页