摘要: package demo; import java.math.BigDecimal; public class EX { public static void main(String[] args) { BigDecimal sum=new BigDecimal(0.0); BigDecimal factorial=new BigDecimal(1.0); int i... 阅读全文
posted @ 2016-04-05 14:10 武略 阅读(217) 评论(0) 推荐(0) 编辑
摘要: As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro 阅读全文
posted @ 2016-01-02 21:43 武略 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 单步调试 1)设置断点 在需要设置断点处,右击左边行号,Add breakpoint,则出现一个红色的点(可以同时设置多个,前提是不能在debug的运行模式下)。 2)调试运行 Debug->Start(F8) 3)查看变量 Debug->Debugging windows->Watches 其中, 阅读全文
posted @ 2016-01-02 10:56 武略 阅读(397) 评论(0) 推荐(0) 编辑
摘要: • 按住Ctrl滚滚轮,代码的字体会随你心意变大变小。 • 在编辑区按住右键可拖动代码,省去拉(尤其是横向)滚动条之麻烦;相关设置:Mouse Drag Scrolling。 • Ctrl+D可复制当前行或选中块。 • Ctrl+Shift+C注释掉当前行或选中块,Ctrl+Shift+X则解除注释 阅读全文
posted @ 2016-01-02 10:55 武略 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio>#include <cstring>#include <algorithm> #define LEN 110#define MOD 100000000 using namespace std; struct BigInt {//随便找了个高精度模版,不会手写... 阅读全文
posted @ 2015-11-28 16:46 武略 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 这道题我改啊,改啊,交啊,就对了。 #include <stdio.h>#include <stdlib.h>#include <math.h>#include<cstring>#include<algorithm> using namespace std;const int N = 1000000 阅读全文
posted @ 2015-10-13 21:09 武略 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 这道题在比赛的时候我就是用的这个方法,但是一直超时。后来重新写了一遍,用了G++过了。 思路: 从小到大找必定超,我看限制条件一的个数是0~32差不多,这么个循环是不会超时的。我就从i->s1~s2循环,里面找一的个数为i的。 这里因为要i个1,然后又要比L大那么把第i个1前移一位。 下面这里分两个 阅读全文
posted @ 2015-10-08 10:47 武略 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Shopping Offers Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 4696 Accepted: 1967 Description In a shop each kind of product has a price. 阅读全文
posted @ 2015-08-22 19:06 武略 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Dividing Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 63980 Accepted: 16591 Description Marsha and Bill own a collection of marbles. The 阅读全文
posted @ 2015-08-20 16:22 武略 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-08-19 15:49 武略 阅读(212) 评论(0) 推荐(0) 编辑