摘要: Vasya will fancy any number as long as it is an integer power of two. Petya, on the other hand, is very conservative and only likes a single integer p 阅读全文
posted @ 2020-06-03 15:22 DeaL57 阅读(141) 评论(0) 推荐(0) 编辑
摘要: You have a set of birthday cake candles. Each of such candles represents a digit between 00 and 99, inclusive. Example of birthday cake candles. Let's 阅读全文
posted @ 2020-06-03 11:20 DeaL57 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Ujan has been lazy lately, but now has decided to bring his yard to good shape. First, he decided to paint the path from his house to the gate. The pa 阅读全文
posted @ 2020-06-03 00:03 DeaL57 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 扩展欧几里得求逆元 void exgcd ( int a , int b ) { if ( b == 0 ) { x = 1; y = 0; return ; } exgcd ( b , a % b ); int xx , yy; xx = y; yy = x - (a/b) * y; x = xx 阅读全文
posted @ 2020-06-03 00:01 DeaL57 阅读(100) 评论(2) 推荐(0) 编辑