随笔分类 - 组合数学-排列组合&Lucas定理
摘要:不用map用hash import java.io. ; import java.util. ; import java.util.Scanner; import java.math.BigInteger; import java.lang. ; public class Main{ static
阅读全文
摘要:【出处】: "CF 327 C" include include include include include include include include include using namespace std; define ll long long define mod 100000000
阅读全文
摘要:(a + b)2 = a2 + 2ab + b2 (a + b)3 = a3 + 3a2b + 3ab2 + b3 (a + b)4 = a4 + 4a3b + 6a2b2 + 6ab3 + b4 (a + b)5 = a5 + 5a4b + 10a3b2 + 10a2b3 + 5ab4 + b5
阅读全文
摘要:A. Far Relative’s Birthday Cake time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Door's fa
阅读全文
摘要:A. Kyoya and Photobooks time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Kyoya Ootori is
阅读全文
摘要:B. Ralph And His Magic Field time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Ralph And
阅读全文
摘要:C. The Intriguing Obsession time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. The Intrig
阅读全文