CF 1374A. Required Remainder You are given three integers x,y and n. Your task is to find the maximum integer k such that 0≤k≤n that kmodx=y, where mo ...
分类:
其他好文 时间:
2020-07-29 10:29:20
阅读次数:
63
Task Scheduler (M) 题目 You are given a char array representing tasks CPU need to do. It contains capital letters A to Z where each letter represents a ...
分类:
其他好文 时间:
2020-07-29 10:27:27
阅读次数:
69
Motivation The task of finding nearest neighbours is very common. You can think of applications like finding duplicate or similar documents, audio/vid ...
分类:
其他好文 时间:
2020-07-29 10:07:50
阅读次数:
68
之前有博文测试了SELECT_PRINTER(),这个是临时默认打印机,前面的博文对比了如何设置windows默认打印机,如何设置临时默认打印机。以及临时默认打印指定后,在lodop和c-lodop的效果。 前面的博文链接(cnblog的):LODOP指定window默认打印机和临时默认打印机、 之 ...
分类:
其他好文 时间:
2020-07-28 17:08:04
阅读次数:
101
SELECT CONCAT( ROUND( t1.total / t2.totalCount * 100, 2 ), '%' ) AS LocalPercent, t1.school_task_id, 0 as NonlocalPercent FROM ( select count(a.studen ...
分类:
其他好文 时间:
2020-07-28 13:56:22
阅读次数:
87
一、创建celery包 1、新建一个包,任意命名,如,celery_task。 2、包内创建celery对象,指定命名为celery.py: from celery import Celery broker = 'redis://127.0.0.1:6379/1' backend = 'redis: ...
分类:
其他好文 时间:
2020-07-27 23:34:07
阅读次数:
76
public class Threads { /** * sleep等待,单位为毫秒,忽略InterruptedException. */ public static void sleep(long millis) { try { Thread.sleep(millis); } catch (Int ...
分类:
编程语言 时间:
2020-07-27 23:33:18
阅读次数:
73
本文将介绍在ASP.Net Core中处理异常的几种方法 1使用开发人员异常页面(The developer exception page) 2配置HTTP错误代码页 Configuring status code pages 3使用MVC过滤器 ExceptionFilter 4 自定义异常捕获中 ...
分类:
Web程序 时间:
2020-07-27 09:46:04
阅读次数:
103
HDFS概述 HDFS产出背景及定义 HDFS优缺点 HDFS组成架构 HDFS文件块大小(面试重点) MapReduce概述 MapReduce定义 MapReduce优缺点 优点 缺点 MapReduce核心思想 1)分布式的运算程序往往需要分成至少2个阶段。 2)第一个阶段的MapTask并发 ...
分类:
其他好文 时间:
2020-07-26 23:01:30
阅读次数:
83
传送门 A Poker Time limit: 1000ms Memory limit: 262144k (wls视频讲解地址) 如果这次交换能够使得这个人手上的牌的点数的期望变大,他就会选择交换(只考虑这次交换,不考虑之后的人的情况)。四个人互相知道他们所有人都使用了这个策略。 题意四个人四张牌, ...
分类:
其他好文 时间:
2020-07-26 19:35:40
阅读次数:
65