摘要: 纯粹的大数问题题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1002感觉代码好龊 QAQ 但是写的应该还是比较好理解的...(面壁...#include <stdio.h>#include <string.h>int main(){ char s1[1001], s2[1001]; int s[1005]; int i, q, w, n, h; int z = 0; scanf("%d",&n); h = n; while( n-- ) { z++; scan... 阅读全文
posted @ 2012-03-31 17:23 双生_浅羽 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 目前学博弈中...巴什博弈问题HDU 1846 Brave Game题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1846可以取走1...m个石子,即拿到(m+1)的倍数的棋子的人必胜代码如下:View Code #include <stdio.h>int main(){ int c, n, m; scanf("%d",&c); while( c-- ) { scanf("%d %d",&n,&m); if( n%(m+1) == 0 ) printf("sec 阅读全文
posted @ 2012-03-31 17:00 双生_浅羽 阅读(143) 评论(0) 推荐(0) 编辑