摘要:
http://poj.org/problem?id=3191题意:将一个整型的十进制整数转化为-2进制整数。 1 #include 2 #include 3 #include 4 #include 5 #define LL long long 6 using namespace std; 7 int main() 8 { 9 LL n,s[1010];10 while(~scanf("%lld",&n))11 {12 memset(s,0,sizeof(s));13 if (n==0)14 {15 ... 阅读全文
posted @ 2013-11-25 22:03
N_ll
阅读(222)
评论(0)
推荐(0)
摘要:
http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2493 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn=1010; 6 const int maxm=maxn*maxn; 7 const long long INF=1LLq;31 q.push(s);32 vis[s] = 1;33 dis[s] = 0;34 while(!q.empty())35 {36... 阅读全文
posted @ 2013-11-25 15:52
N_ll
阅读(127)
评论(0)
推荐(0)

浙公网安备 33010602011771号