摘要: G: Give Candies 题目描述 There are N children in kindergarten. Miss Li bought them N candies。To make the process more interesting, Miss Li comes up with t 阅读全文
posted @ 2019-08-03 10:16 SpringYEP 阅读(233) 评论(0) 推荐(0) 编辑
摘要: B: Mathematical Curse 题目描述 A prince of the Science Continent was imprisoned in a castle because of his contempt for mathematics when he was young, and 阅读全文
posted @ 2019-08-03 09:42 SpringYEP 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 十进制快速幂 例:求a^b%mod,(a<=10,b<=1e100000,mod=1e9+7) 说明 这时候 long long是存不下b的,但是可以用字符数组存; 举个简单例子,求 2^2345; 可以依次求2^2 -> (2^2)^10=2^20 -> (2^20)^3=2^23 -> (2^2 阅读全文
posted @ 2019-08-02 19:05 SpringYEP 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Just an Old Puzzle 题目描述 You are given a 4 × 4 grid, which consists of 15 number cells and an empty cell.All numbers are unique and ranged from 1 to 15 阅读全文
posted @ 2019-08-01 21:47 SpringYEP 阅读(329) 评论(0) 推荐(0) 编辑