摘要:
#include <cstring> #include <iostream> #include <algorithm> #include <queue> using namespace std; const int N = 1001010; int e[N], ne[N], head[N], tot 阅读全文
摘要:
#include <iostream> using namespace std; int main() { long long int a, b, p, sum = 1; scanf("%lld%lld%lld",&a, &b, &p); sum = 1 % p; while(b) { if(b & 阅读全文
摘要:
题目描述: 在字符串 s 中找出第一个只出现一次的字符。如果没有,返回一个单空格。 s 只包含小写字母。 示例: s = "abaccdeff"返回 "b" s = "" 返回 " " 程序代码 class Solution { public: char firstUniqChar(string s 阅读全文
摘要:
埃氏筛理解与代码模板 #include <iostream> #include <cstring> using namespace std; const int N = 10010; bool isprime[N]; int n, prime[N], tot; int Era_prime(int n 阅读全文