原创 小Y喫蘋果 --埃森哲杯第十六屆上海大學程序設計聯賽春季賽暨上海高校金馬五校賽

鏈接:https://www.nowcoder.com/acm/contest/91/E來源:牛客網時間限制:C/C++ 1秒,其他語言2秒空間限制:C/C++ 131072K,其他語言262144K 64bit IO Format: %

原创 POJ - 1988-(帶權並查集)

Farmer John and Betsy are playing a game with N (1 <= N <= 30,000)identical cubes labeled 1 through N. They start with

原创 Wasserstein Distance--埃森哲杯第十六屆上海大學程序設計聯賽春季賽暨上海高校金馬五校賽

鏈接:https://www.nowcoder.com/acm/contest/91/A來源:牛客網Wasserstein Distance題目描述 最近對抗生成網絡(GAN)很火,其中有一種變體WGAN,引入了一種新的距離來提高生成圖片

原创 FZU - 2271—X(Floyd)

X is a fully prosperous country, especially known for its complicated transportation networks. But recently, for the sa

原创 POJ2342 Anniversary party

鏈接:http://poj.org/problem?id=2342Anniversary partyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 10326 Accep

原创 POJ - 1125 Stockbroker Grapevine (floyd+判斷從某一源點是否走完所有點)

Stockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformatio

原创 POJ1376 --Robot+譯文(BFS+地圖轉化+細心)

The Robot Moving Institute is using a robot in their local store to transport different items. Of course the robot shou

原创 K序列--埃森哲杯第十六屆上海大學程序設計聯賽春季賽暨上海高校金馬五校賽

鏈接:https://www.nowcoder.com/acm/contest/91/L來源:牛客網K序列時間限制:C/C++ 1秒,其他語言2秒空間限制:C/C++ 131072K,其他語言262144K 64bit IO Format

原创 小Y吃蘋果 --埃森哲杯第十六屆上海大學程序設計聯賽春季賽暨上海高校金馬五校賽

鏈接:https://www.nowcoder.com/acm/contest/91/E來源:牛客網時間限制:C/C++ 1秒,其他語言2秒空間限制:C/C++ 131072K,其他語言262144K 64bit IO Format: %

原创 Ford-Fulkerson算法(模板)以後繼續補充

#include<stdio.h> #include<algorithm> #define inf 0x3f3f3f3f #include<string.h> using namespace std; int n,m; int map[5

原创 C語言小遊戲系列--迷宮OpenGL

#include <windows.h> // Must have for Windows platform builds //#include "gl\glee.h" // OpenGL Extension ¡°autoloader¡±

原创 C語言小遊戲系列--簡易五子棋(親測可用)

#include <stdlib.h> #include <stdio.h> #include <conio.h> #include <string.h> #define MAXIMUS 15 //定義棋盤大小 int p[MAXIM

原创 CodeForces - 961C Chessboard (模擬暴力)Magnus decided to play a classic chess game. Though what he saw

鏈接:http://codeforces.com/problemset/problem/961/CMagnus decided to play a classic chess game. Though what he saw in his

原创 C語言小遊戲系列--猜數字(親測,簡單易懂)

#include<stdio.h> #include<iostream> #include<algorithm> #include<time.h> using namespace std; int main() { int n;

原创 Goldbach 2018 ACM-ICPC 中國大學生程序設計競賽線上賽

Description: Goldbach's conjecture is one of the oldest and best-known unsolved problems in number theory and all of