Loading

摘要: 最近做题的时候,经常遇到范围是2^63,取模2^64的这种题目。遇到这种限制条件时就要想到用unsigned long long类型。 可以简洁地声明为typedef unsigned long long ull。这样,如果ull类型的整数溢出了,就相当于取模2^64了。因为ull的范围是[0,2^ 阅读全文
posted @ 2020-01-13 16:17 ViKyanite 阅读(527) 评论(0) 推荐(0)
摘要: Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which the 阅读全文
posted @ 2020-01-13 14:25 ViKyanite 阅读(270) 评论(0) 推荐(0)