program

2021-2022 ICPC Northwestern European Regional Programming Contest (NWERC 2021)

Preface 和昨天刚好相反,前期极度崩盘2h2题而且一堆银铜牌题不会 但好在后面稳扎稳打慢慢追回来了一点,最后超高罚时8题收场 这场一边打一边看ECF的实况,最后看到同校的Wifi暴打全场,实在是ORZ A. Access Denied 签到,首先暴力问出长度然后从前往后一位一位确定即可 注意实 ......

2023 United Kingdom and Ireland Programming Contest (UKIEPC 2023)

Preface 最坐牢的一集,前3h狂出10题然后最后2h坐牢,祁神写J怒调2h最后喜提MLE 赛后我Rush了个H的做法常数太大又喜提TLE,评价是不如去写E题的模拟退火 A. Assessment Disruption 挺精巧的构造题,刚开始以为是构造数据不卡掉想歪了好久,后面仔细一想还是挺简单 ......
2023 Programming Kingdom Ireland Contest

2022 Jiangsu Collegiate Programming Contest

A. PENTA KILL! 简单模拟。 B. Prime Ring Plus 大于 \(2\) 的素数只可能是奇数,因此相邻两个数一定是一奇一偶,容易想到二分图。 但是环上每个点有两个相邻的点,网络流求匹配是将与源汇点相连的边流量设为 \(2\) 即可。 C. Jump and Treasure ......
Programming Collegiate Jiangsu Contest 2022

2021 Jiangsu Collegiate Programming Contest

A. Spring Couplets 简单模拟。 B. Among us 容易想到对于每个内鬼和船员集合 \(S\),求出它杀掉 \(S\) 中所有人的最短时间,最后 \(O(2^k)\) 合并答案即可。 考虑状压。设 \(f_{S,i}\) 杀完 \(S\) 中的人后站在节点 \(i\) 上所需要 ......
Programming Collegiate Jiangsu Contest 2021

VSCode 终端显示“pnpm : 无法加载文件 C:\Program Files\nodejs\npm.ps1,因为在此系统上禁止运行脚本”

如果出现以下问题: 解决方案: 1.用get-ExecutionPolicy命令在vscode终端查询状态 get-ExecutionPolicy # 返回 Restricted 说明状态是禁止的 Restricted 2.用set-ExecutionPolicy RemoteSigned命令更改状 ......
脚本 终端 Program 文件 VSCode

Programming Abstractions in C阅读笔记:p242-p245

《Programming Abstractions in C》学习第67天,p242-p245总结,总计4页。 一、技术总结 6.2小结主要讲回溯算法及递归算法在迷宫求解中应用,当然,理解然后用代码实现出来还是有些难度的。不过,这并不影响我们进行下一节6.3的学习。 二、英语总结 1.skeptic ......
Abstractions Programming 笔记 242 245

2023-2024 ACM-ICPC Latin American Regional Programming Contest

Preface 这场终于找回一点感觉了,总体来说虽然有点唐但打的还不错 开场签到有点磕磕绊绊在加上前面只有我一个人在读题,因此出的比较慢 中期开始慢慢发力后祁神也放下了明天的数电考试复习过来助阵,轻松秒了一道几何 最后已经写了一个细节题L的徐神最后1h被另一个细节题G搞得屡次破防,最后也是没能调出, ......

4_3 Declarative Programming

4_3 Declarative Programming In addition to streams, data values are often stored in large repositories called databases. A database consists of a data ......
Declarative Programming

2_5 Object-Oriented Programming

2_5 Object-Oriented Programming Object-oriented programming (OOP) is a method for organizing programs that brings together many of the ideas introduce ......

ASP.NET Core 6(.NET 6) Program.cs中使用读取appsettings.json配置文件

​ 在ASP.NET Core 6 (.NET 6)中,可以使用Json格式的appsettings.json配置文件来配置应用程序,用于存储应用程序的配置信息,方便我们灵活的配置应用程序。本文主要介绍Program.cs中,使用读取appsettings.json配置文件的方法,以及相关的示例代码 ......
appsettings NET Program 文件 Core

SV interface and Program3

时钟域的理解 在仿真过程中,时钟跳变的一瞬间,CPU将时间域划分为不同的时钟域执行不同的代码 信号在芯片中都是金属丝,在进行跳变的时候都是电容的充放电过程,通常使用时钟上升沿进行模拟,而不使用时钟下降沿 // define the interface interface mem_if(input w ......
interface Program3 Program and SV

CF1914F Programming Competition 贪心原则的DP?

终于理解了... 希望写给小伙伴们,希望大伙可以理解。 先确定贪心规则,即当最大子树不超过根子树减一的一半时,内部节点可以完全匹配。否则,可以先拿其他子树节点与最大子树内部节点匹配,子树内部再进行匹配。啥你说子树内部不够匹配怎么办?可以这么想,你这样都到匹配上限了,已经完全可以达到最优秀情况,取ma ......
Programming Competition 原则 1914F 1914

UNIQUE VISION Programming Contest 2023 Christmas (AtCoder Beginner Contest 334)

UNIQUE VISION Programming Contest 2023 Christmas (AtCoder Beginner Contest 334) A - Christmas Present 代码: #include <bits/stdc++.h> using namespace std ......

Q:以非root用户编辑定时任务报错You are not allowed to use this program(crontab)

编辑定时删除文件任务时报错 crontab -e 编辑定时任务时报错,如下图所示 问题原因:/etc/cron.allow中没有添加对应的用户名解决办法:切换到root用户,在/etc/cron.allow中添加对应的用户名 编辑定时任务:crontab -e #每天中午13点,定时删除/var路径 ......
任务 allowed crontab program 用户

(15-418)Lecture 4 Parallel Programming Basics

并行编程的步骤 可以把并行编程分为下图中的四个步骤: Decmposition 把问题分解为能够并行化的任务,Amdahl定律指出,程序的串行部分制约着并行程序的加速比。 要将一张照片的每个象素的亮度翻倍、计算所有象素的平均值,由于这两部分都是可并行化的,所以加速比可以接近理想情况: Assignm ......
Programming Parallel Lecture Basics 418

TensorIR: An Abstraction for Automatic Tensorized Program Optimization

Abstract 在多种多样的设备上部署深度学习模型是一个重要的话题,专用硬件的蓬勃发展引入了一系列加速原语和多维张量计算方法。这些新的加速原语和不断出现的新的机器学习模型,带来了工程上的巨大挑战。本文提出了TensorIR,是为了优化这些有张量计算原语的张量化程序而设计的编译器抽象。TensorI ......

CF1914F Programming Competition

原题链接 感觉有点类似 agc034e Complete Compress,但那题比这个难得多。 定义 \(f_x\) 为以 \(x\) 为根的子树中,尽可能组队后最多剩下多少人,\(siz_x\) 为子树大小。 记 \(y\in son(x)\) 中 \(f_y\) 最大的点为 \(hson_x\ ......
Programming Competition 1914F 1914 CF

Programming Abstractions in C阅读笔记:p235-p241

《Programming Abstractions in C》学习第66天,p235-p241总结。 一、技术总结 1.backtracking algorithm(回溯算法) (1)定义 p236, For many real-world problem, the solution process ......
Abstractions Programming 笔记 235 241

BIgdataAIML-IBM-A neural networks deep dive - An introduction to neural networks and their programming

https://developer.ibm.com/articles/cc-cognitive-neural-networks-deep-dive/ By M. Tim Jones, Published July 23, 2017 Neural networks have been around f ......

(15-418)Lecture 3 Parallel Programming Abstractions

抽象VS实现 实例:ISPC程序 ISPC是一种SPMD(single program multiple data)编译器。 利用ISPC编写的计算sin(x)的程序如下图: ISPC提供了一种抽象,当调用ISPC函数时(即程序中调用sinx的语句),会产生一个gang,这个gang含有多个ISPC ......

2023 China Collegiate Programming Contest (CCPC) Guilin Onsite (The 2nd Universal Cup. Stage 8: Guilin)

题解: https://files.cnblogs.com/files/clrs97/2023Guilin_Tutorial.pdf Code: A. Easy Diameter Problem #include<bits/stdc++.h> using namespace std; const i ......

Toyota Programming Contest 2023#8(AtCoder Beginner Contest 333)

Toyota Programming Contest 2023#8(AtCoder Beginner Contest 333) A - Three Threes 代码: #include <bits/stdc++.h> using namespace std; typedef long long l ......
Contest Programming Beginner AtCoder Toyota

Ansor:Generating High-Performance Tensor Program for Deep Learning

Ansor:Generating High-Performance Tensor Program for Deep Learning Abstract 高性能的张量程序对于保证深度神经网络的高效执行十分关键,但是在不同硬件平台上获取高性能的张量程序并不容易。近年的研究中,深度学习系统依赖硬件供应商提 ......

VIVADO Linux下 program device脚本

set bitfile "/root/x.bit" open_hw_manager connect_hw_server -url localhost:3121 open_hw_target [lindex [get_hw_targets] 0] current_hw_device [lindex [ ......
脚本 program VIVADO device Linux

docker启动容器报错:Error response from daemon: driver failed programming external connectivity on endpoint

安装的docker启动报错如下: Error response from daemon: driver failed programming external connectivity on endpoint nacos (2b0f4edff8f640559af9626936d1b38d965302 ......

《Function Programming in C++》

说明 《Functional Programming in C++》书中代码练习测试以及一些笔记,部分代码需要用到C++20可以使用在线编译器编译代码 地址:https://coliru.stacked-crooked.com/ 或者自己编译gcc-11.2及以上版本安装 1 介绍 1.1 什么是函 ......
Programming Function in

Scheduler pelt c program 【ChatGPT】

https://www.kernel.org/doc/html/v6.6/scheduler/text_files.html /* * The following program is used to generate the constants for * computing sched aver ......
Scheduler ChatGPT program pelt

ASP.NET Core Program 类

Program类是ASP.NET Core 应用程序的一个入口点,它位于应用程序的根目录下,它定义了.NET Core应用程序所需的服务和中间件组件。 Program类默认代码如下:​​​​​​​ var builder = WebApplication.CreateBuilder(args); v ......
Program Core ASP NET

2023 CCPC Henan Provincial Collegiate Programming Contest

Preface 徐神在训练前宣称要复习计通网,结果最后还是相当于全程参与了我们的训练 这场我纯纯战犯表现,Easy题E狂挂7发最后发现原来是多测没清空干净,直接红温占用中期1h机时 但好在祁神稳切了一手压轴计算几何,同时最后2h把卡着的题都过完了,最后又靠着题数捧杯(唉还在打弱省省赛找自信) A. ......

Daiwa Securities Co. Ltd. Programming Contest 2023(AtCoder Beginner Contest 331)

Daiwa Securities Co. Ltd. Programming Contest 2023(AtCoder Beginner Contest 331) A - Tomorrow 解题思路: 模拟。 代码: #include <bits/stdc++.h> using namespace s ......
共306篇  :1/11页 首页上一页1下一页尾页