摘要:
题目:Arctic Network 网址:http://noi-test.zzstep.com/contest/0x6B%E3%80%8C%E5%9B%BE%E8%AE%BA%E3%80%8D%E7%BB%83%E4%B9%A0/POJ2349%20Arctic%20Network 描述 The D 阅读全文
摘要:
一、快速幂 给定三个正整数$a,b,p$,求出$a^b%p$的值。 代码如下: int power(int a, int b, int p) { int ans = 1 % p; while(b) { if(b & 1) ans = (long long) ans * a % p; b >>= 1; 阅读全文
摘要:
比赛:https://codeforces.com/contest/1382 A. Common Subsequence 网址:https://codeforces.com/contest/1382/problem/A You are given two arrays of integers \(a 阅读全文
摘要:
A. Magical Sticks 网址:https://codeforces.com/contest/1371/problem/A A penguin Rocher has \(n\) sticks. He has exactly one stick with length \(i\) for a 阅读全文