原创 hdu 3507 Print Article(斜率優化)

題目鏈接 http://acm.hdu.edu.cn/showproblem.php?pid=3507 關於斜率優化我理解的不太透徹,講也講不清楚。這裏只是整理一下模板,見諒見諒。 代碼 #include <bits/stdc++.h>

原创 Tensorflow2.0實現最簡單的神經網絡

import tensorflow as tf import numpy as np #實例化 model=tf.keras.Sequential() #添加一層全連接神經網絡。 #輸入張量的維度是1 #輸入一個元素 model.a

原创 hdu6667 Roundgod and Milk Tea(Hall定理)

題目鏈接 http://acm.hdu.edu.cn/showproblem.php?pid=6667 題目描述 Problem Description Roundgod is a famous milk tea lover at Nan

原创 Codeforces Round #591 D. Sequence Sorting(逆向思維)

題目鏈接 https://codeforces.com/contest/1241/problem/D 題目描述 You are given a sequence a1,a2,…,an, consisting of integers. Yo

原创 Educational Codeforces Round 74 (Rated for Div. 2) D. AB-string(逆向思維)

題目鏈接 https://codeforces.com/contest/1238/problem/D 題目描述 The string t1t2…tk is good if each letter of this string belong

原创 【nowcoder_挑戰賽31】克洛涅的多項式(構造)

鏈接:https://ac.nowcoder.com/acm/contest/880/B 來源:牛客網   題目描述  克洛涅修女來到了這所孤兒院。Sister 很快就和大家打成一片,開始了捉迷藏的遊戲。 Sister 今天藏起來了一個

原创 Codeforces Round #582 (Div. 3) D2. Equalizing by Division (hard version)(思維+枚舉暴力)

題目鏈接 https://codeforces.com/contest/1213/problem/D2 題目描述 You are given an array a consisting of n integers. In one move

原创 Traceroute(因未知原因未能測試成功,請指教)

#define _WINSOCK_DEPRECATED_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #define DEF_ICMP_DATA_SIZE 1024 #define MAX_IC

原创 簡易嗅探程序

#define _WINSOCK_DEPRECATED_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #define DestPort 65432 //目的UDP端口 #d

原创 WinSock之協議查詢

#define _WINSOCK_DEPRECATED_NO_WARNINGS #include "WinSock2.h" #include "iostream" #pragma comment(lib,"ws2_32.lib") /