任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = ...
分类:
其他好文 时间:
2021-04-30 12:31:08
阅读次数:
0
#include<stdio.h> void fun(int n); int main(){ int n; long long f; while(scanf("%d", &n)!=EOF){ fun(n); } return 0; } void fun(int n){ int f[505],a[50 ...
分类:
其他好文 时间:
2021-04-30 12:29:16
阅读次数:
0
#include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = %d, ...
分类:
其他好文 时间:
2021-04-30 12:24:09
阅读次数:
0
最近碰到一个奇怪问题,调用第三方接口时,返回{resultCode=INVALID_PARAMETER, resultMsg=too long time span between now and req_time}, 参数异常,请求时间离现在时间太久. 于是把参数打印出来,一切正常,参数也就一个流程 ...
分类:
其他好文 时间:
2021-04-30 12:08:57
阅读次数:
0
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> body{ text-align:center; } #small{ margin-top:40px; } #showBig{ position:absolute; displa ...
分类:
Web程序 时间:
2021-04-28 12:06:03
阅读次数:
0
#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
今天我来分享一下如何利用素数分解定理求解与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
1. 判断是否是基础数据类型 /** * 判断是否是基础数据类型,即 int,double,long等类似格式 */ public static boolean isCommonDataType(Class clazz){ return clazz.isPrimitive(); } 2、 判断是否是 ...
分类:
其他好文 时间:
2021-04-26 13:54:00
阅读次数:
0
作用:自动生成模板代码和实体类,简化开发人员工作,降低错误率。 1.entity ##导入宏定义 $!define ##保存文件(宏定义) #save("/entity", ".java") ##包路径(宏定义) #setPackageSuffix("entity") ##自动导入包(全局变量) $ ...
分类:
其他好文 时间:
2021-04-26 13:23:45
阅读次数:
0