#include <bits/stdc++.h> typedef unsigned long long ll; const ll P=1331; using namespace std; ll hash1[1000000],u[1000000]; ll get(int l,int r){ retur ...
分类:
其他好文 时间:
2021-04-27 15:00:27
阅读次数:
0
#include <iostream> #include <stack> #include <cstring> #include <unordered_map> using namespace std; typedef long long ll; stack<int>num; stack<char> ...
分类:
其他好文 时间:
2021-04-27 14:59:52
阅读次数:
0
C++(自带异常,使用示例) #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string> //系统提供标准异常 #include <stdexcept> using namespace std; class Person ...
分类:
编程语言 时间:
2021-04-27 14:52:17
阅读次数:
0
#include<cstdio> #include<cstring> using namespace std; char firstper[20]; char lastper[20]; char firsttime[20]="23:59:59"; char lasttime[20]="00:00:0 ...
分类:
其他好文 时间:
2021-04-27 14:33:17
阅读次数:
0
C++(template模板 && 类模板 成员函数类外实现) 类模板,成员函数类外实现 #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string> using namespace std; template<class ...
分类:
编程语言 时间:
2021-04-27 14:30:06
阅读次数:
0
参考 https://blog.csdn.net/Simon798/article/details/103161482 先上代码: // Test_Console.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <afx.h> #includ ...
分类:
编程语言 时间:
2021-04-27 14:13:15
阅读次数:
0
今天我来分享一下如何利用素数分解定理求解与n互质的数的个数。 下面是代码 #include<bits/stdc++.h> using namespace std; long long fun(int x) { long long ans=x; int t=sqrt(x); int cnt; for( ...
分类:
其他好文 时间:
2021-04-26 14:12:06
阅读次数:
0
任务 输入N个整数,存入数组,实现以下函数: 实现数组内容原地逆置; 找出数组中的最大元素与第一个元素交换; 输出数组元素的值 编写一个主程序,测试以上3个函数。 代码实现 #include<stdio.h> void swap(int array[], int indexF, int indexS ...
分类:
编程语言 时间:
2021-04-26 14:01:19
阅读次数:
0
头文件 #include <signal.h> #include <time.h> 创建定时器 int timer_create(clockid_t clockid, struct sigevent *evp, timer_t *timerid); ...
分类:
其他好文 时间:
2021-04-26 13:55:59
阅读次数:
0
线程 创建线程 #include <pthread.h> int pthread_create(pthread_t *restrict thread,const pthread_attr_t *restrict attr,void *(*start_routine)(void*), void *re ...
分类:
其他好文 时间:
2021-04-26 13:53:31
阅读次数:
0