ICode9

精准搜索请尝试: 精确搜索
  • One Outs看完2022-07-27 15:02:44

    真的是很专注而纯粹的动漫啊 完全靠剧情和人物 写实而朴实的画风 智斗与热血 每集都是比赛计策和反转 只固定几首bgm但恰到好处     Lycaons pitcher Tokuchi Toua Strike Batter Out

  • python 调用 powershell2022-04-01 12:03:24

    python3 import os from glob import glob import subprocess as sp class PowerShell: # from scapy def __init__(self, coding, ): cmd = [self._where('PowerShell.exe'), "-NoLogo", "-NonInteractive", # Do not print headers "

  • pytorch实现resnet50(训练+测试+模型转换)2021-07-05 10:01:51

    本章使用pytorch训练resnet50,使用cifar数据集。 数据集: 代码工程: 1.train.py import torch from torch import nn, optim import torchvision.transforms as transforms from torchvision import datasets from torch.utils.data import DataLoader from resnet50 import R

  • 【loj 3275】「JOISC 2020 Day2」有趣的 Joitter 交友【启发式合并】2021-01-09 22:04:38

    传送门 Solution 首先考虑转化题意,以下用\(scc\)指代强连通分量 活动的每一步相同于:如果\(y,z\)在同一个\(scc\)中,\(x\)向\(y\)有连边,那么\(x\)就可以向\(z\)连边。 也就是说,对于一个\(scc\),如果\(x\)向\(scc\)中连了一条边,那么\(x\)就可以在活动后向\(scc\)中的任何一个点连边。

  • 2016 USP Try-outs The Knapsack problem2020-11-28 15:35:44

    题意 完全背包,查询容量为\(W\)的最大价值。 \(n\)个物品,容量\(w_i\),价值\(v_i\) \(n\le 10^3,w_i\le 10^3,v_i\le 10^9.W\le 10^9\) 做法 令\(f(S)\)表示容量不超过\(S\)的最大价值 显然有\(f(S)=max\{f(X)+f(S-X)\}\) 我们让\(X,S-X\)尽量接近,显然有\(|X-(S-X)|\le 10^3\) 令\(

  • PAT 1006 Sign In and Sign Out2020-03-26 21:02:46

    At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and out's, you are supposed to find the ones who have unloc

  • 前端与数据库交互2020-02-27 20:54:10

    设计要求: 前端的HTML页面可以对数据库的一个数据表进行增删改查,并将结果以一个div的形式进行输出。   前端HTML页面(index.html): <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,minimum-scale=1.0,maxi

  • qt +opencv dnn+tensorflow实现敏感区域预警2020-02-05 15:02:38

    qt +opencv dnn+tensorflow实现值班预警 在安保过程中大家有没有过这样的经历,有人进入敏感区域时没有及时发现。今天就用qt +opencv dnn+tensorflow实现实现敏感区域预警 如下图: 打开预警后,有人进入摄像头区域就会发出声音报警。 实现主要原理代码如下:(将图片Mat改成摄像

  • UFPE Starters Final Try-Outs 20202020-01-14 20:03:41

    题目很简单。差点10题,非常可惜。 A: 签到题+4不应该。 solver:lzh 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef pair<int, int> pii; 4 typedef long long ll; 5 #define ff first 6 #define ss second 7 8 const int MAXSTRLEN = 500010; 9 int max

  • 2019 USP Try-outs 练习赛2019-09-26 22:01:15

    // 好久没更博客了,最近打了很多场练习赛&校内PK赛,大概自闭忙于补题吧 // 9.26 周四练习赛 A. Kolkhozy 题意 有 n 个数 \(f[i]\) ,有 q 次询问(l, r, x, m),求 [l, r] 区间内有多少项满足 \(f[i] \%m=x\)。 思路 直接暴力的话复杂度 \(O(q\cdot n)\) ,注意到此题空间给了1024MB,如果能

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有