摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=251NetworkA Telephone Line Company (TLC) is... 阅读全文
posted @ 2015-10-27 17:32 啦咯 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 首先、扩展欧几里得定理:对于两个不全为0的整数a、b,必存在一组解x,y,使得ax+by==gcd(a,b);int gcd(int a,int b){ int t,d; if(b==0) { x=1; y=0; //不明处1return a; ... 阅读全文
posted @ 2015-10-27 16:10 啦咯 阅读(767) 评论(0) 推荐(0) 编辑
摘要: A rook is a piece used in the game of chess which is played on a board of square grids. A rook can only move vertically or horizontally from its curre... 阅读全文
posted @ 2015-10-27 14:51 啦咯 阅读(176) 评论(0) 推荐(0) 编辑