上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 38 下一页
摘要: /* 这题今天一直RE(Runtime Error),一开始一直不明白,又怀疑到了cin对stdio的兼容,但是仍然RE 后来发现,我忽视了乘法的溢出,也就是说,仅仅只是把数据定义为long long,以满足它们的10^18量级,仍然是不够的 因为凡是乘法运... 阅读全文
posted @ 2017-08-25 09:09 mofushaohua 阅读(229) 评论(0) 推荐(0)
摘要: /*保留最初版本的错误代码,以免重蹈覆辙:#include using namespace std;const int N = 2e5 + 10;int a[N];int main(){ int n, k; while (cin >> n >> k) { for (... 阅读全文
posted @ 2017-08-25 09:08 mofushaohua 阅读(149) 评论(0) 推荐(0)
摘要: /* 法一: 之前不会象棋的玩法,为了这题特意百度了许久,弄清楚了基本规则 另,这题一开始的代码十分繁琐,后来看到了一篇很好的博客,他的思路就很简洁: http://blog.csdn.net/hao_zong_yin/article/details/5... 阅读全文
posted @ 2017-08-25 09:05 mofushaohua 阅读(415) 评论(0) 推荐(0)
摘要: #include #include #include #include #include #include using namespace std;const int MAX_P = 1e6 + 10; int P;int a[MAX_P];void solve(){... 阅读全文
posted @ 2017-08-24 19:47 mofushaohua 阅读(85) 评论(0) 推荐(0)
摘要: #include #include using namespace std;const int MAX_N = 1e5 + 10;const int INF = 0x3f3f3f3f;int N, M;int x[MAX_N];bool C (int d){ int ... 阅读全文
posted @ 2017-08-24 19:46 mofushaohua 阅读(109) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 38 下一页