原创 HDU 1114 完全揹包

Piggy-Bank Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s):

原创 How Many Trees? HDU 1130

How Many Trees? Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submissio

原创 2018 acm_icpc 青島 C題

Flippy Sequence Time Limit: 1 Second      Memory Limit: 65536 KB DreamGrid has just found two binary sequences  and  ( 

原创 B. Before an Exam(f 4B)

time limit per test 0.5 second memory limit per test 64 megabytes input standard input output standard output Tomorrow

原创 CodeForces B. The least round way(dp)

轉自:https://blog.csdn.net/u012860063/article/details/40517115 題目鏈接:http://codeforces.com/problemset/problem/2/B B. The l

原创 洛谷P2184

題目背景 面對螞蟻們的瘋狂進攻,小FF的Tower defence宣告失敗……人類被螞蟻們逼到了Greed Island上的一個海灣。現在,小FF的後方是一望無際的大海, 前方是變異了的超級螞蟻。 小FF還有大好前程,他可不想命喪於此,

原创 ACM/ICPC 2018亞洲區預選賽北京賽站網絡賽 D題

時間限制:1000ms 單點時限:1000ms 內存限制:256MB 描述 80 Days is an interesting game based on Jules Verne's science fiction "Around the

原创 線段樹模板

#include <bits/stdc++.h> using namespace std; #define mmax 100010 struct haha{ int x; }we[mmax<<2]; int sum[mmax<<2],

原创 Wannafly挑戰賽23_A 字符串

鏈接:https://www.nowcoder.com/acm/contest/161/A 來源:牛客網   題目描述 小N現在有一個字符串S。他把這這個字符串的所有子串都挑了出來。一個S的子串T是合法的,當且僅當T中包含了所有的小寫字母

原创 Features Track——徐州網絡賽

   31.32%  1000ms  262144K   Morgana is learning computer vision, and he likes cats, too. One day he wants to find the

原创 RSA——HDU1211(擴展歐幾里得

Problem Description RSA is one of the most powerful methods to encrypt data. The RSA algorithm is described as follow:

原创 ACM-ICPC 2018 徐州賽區網絡預賽 Characters with Hash

Mur loves hash algorithm, and he sometimes encrypt another one's name, and call him with that encrypted value. For inst

原创 Factorial

Problem Description The most important part of a GSM network is so called Base Transceiver Station (BTS). These transc

原创 HDU —— 1239 Calling Extraterrestrial Intelligence Again(找素數水題)

Problem Description A message from humans to extraterrestrial intelligence was sent through the Arecibo radio telescop

原创 HDU 1299 Diophantus of Alexandria(質數篩)

Diophantus of Alexandria was an egypt mathematician living in Alexandria. He was one of the first mathematicians to stu