摘要:
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=251NetworkA Telephone Line Company (TLC) is... 阅读全文
摘要:
首先、扩展欧几里得定理:对于两个不全为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; ... 阅读全文
摘要:
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... 阅读全文