模板如下: #include <stdio.h> int main() { int a[20001];//储存每一位所得到的数 int temp,digit,n,i,j=0;//temp每次的得数 digit每次得数的位数 scanf("%d",&n); a[0]=1;//从1开始乘 digit=1 ...
分类:
其他好文 时间:
2020-03-14 23:46:12
阅读次数:
58
You are given an array aa consisting of nn integers. Your task is to determine if aa has some subsequence of length at least 33 that is a palindrome. ...
分类:
其他好文 时间:
2020-03-14 23:35:49
阅读次数:
96
没想到10来年之后又要用到P/Invoke了,为了能用上RocketMQ,不得不用P/Invoke和rocketmq-client-cpp来打交道,花了两三天吧,把这条路彻底打通了,具体过程另外在写,这里就写一个和P/Invoke有关的小知识点。 在用.NET客户端测试的时候,已经可以接收到消费消息 ...
分类:
其他好文 时间:
2020-03-14 22:13:34
阅读次数:
74
task-oriented对话系统主要是为解决特定任务的,比如订票任务(订机票,电影票等),预定饭店等。 区别于问答系统和闲聊机器人,任务是否能成功完成是衡量系统的一大重要因素,也是很多论文中的一个评价指标:task sucess rate。 目前主要有两种实现方式,pipeline结构和end-t ...
分类:
其他好文 时间:
2020-03-14 20:07:59
阅读次数:
63
async main方法 static int Main()//以前 { return DoAsyncWork().GetAwaiter().GetResult(); } static async Task Main() //现在 有返回值 { // This could also be repla... ...
当我们执行 JS 代码的时候其实就是往执行栈中放入函数,那么遇到异步代码的时候该怎么办?其实当遇到异步的代码时,会被挂起并在需要执行的时候加入到 Task(有多种 Task) 队列中。一旦执行栈为空,Event Loop 就会从 Task 队列中拿出需要执行的代码并放入执行栈中执行,所以本质上来说 ...
分类:
其他好文 时间:
2020-03-14 16:45:26
阅读次数:
61
1. Scope 1.1 Common Use Definitions2. Normative references3. Terms, definitions, and abbreviated terms3.1 Terms and definitions3.2 Abbreviated terms4. ...
分类:
其他好文 时间:
2020-03-14 14:34:15
阅读次数:
100
用API开发的人都知道,常用的后台接收参数就是建个DTO,然后前台把这个DTO传过来。后台再更新,例如如下例子: public async Task<IActionResult> PutModel(DTO model) { _context.Entry(model).State = EntitySt ...
分类:
数据库 时间:
2020-03-13 18:41:50
阅读次数:
74
停止hadoop集群 ssh admin@node60 '/opt/module/hadoop-2.7.6/sbin/stop-all.sh';ssh admin@node89 '/opt/module/hadoop-2.7.6/sbin/stop-all.sh';ssh admin@node145 ...
分类:
其他好文 时间:
2020-03-13 18:35:36
阅读次数:
69