原创 Codeforces Round #426 (Div. 2) C:The Meaningless Game(思維)

C. The Meaningless Game time limit per test1 second memory limit per test256 megabytes inputstandard input outp

原创 Codeforces Round #426 (Div. 2)(A+B)

A. The Useless Toy time limit per test1 second memory limit per test256 megabytes inputstandard input outputsta

原创 第八屆福建省大學生程序設計競賽-重現賽(A+D+K+L)

Problem A Frog:雞兔同籠。。。。 Problem D Game:兩人分別有數字a,b。每輪兩人有兩種操作,1:逆序這個數。2:將個位刪去。A先手,當兩個數字相同時,A獲勝。問A能否獲勝。 題解:如果b的位數大於a,

原创 個人近況

還是默默的結束了比賽生涯。很遺憾最後還是因爲沒有隊友導致沒有去上已經拿到資格的區域賽。三年競賽,最後連一場區域賽都沒參加過,能打成這樣的應該不多吧。沒有拼盡全力的人沒有資格在這講情懷\找理由,就不說其他的了。 7月份畢業後來到了深

原创 FZU Problem 2280 Magic(Hash)

Problem 2280 Magic Accept: 46 Submit: 150 Time Limit: 2000 mSec Memory Limit : 262144 KB Problem Descriptio

原创 Codeforces Round #427 (Div. 2) C. Star sky(前綴和)

C. Star sky time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard

原创 HDU 6024 Building Shops(DP)

Problem Description HDU’s n classrooms are on a line ,which can be considered as a number line. Each classroom has

原创 2017 Multi-University Training Contest - Team 1(A+K)

A:A題地址 題意:對於給定的n,找到最大的k使得10^k<=2^n. 題解:等式兩邊同時取log(10)變成k<=log(10)2^n. 代碼: #include<iostream> #include<stdio.h> #

原创 矩陣快速冪

struct Matrix { ll m[sz][sz]; }; Matrix Mul(Matrix a,Matrix b) { Matrix c; memset(c.m,0,sizeof(c.m));

原创 第八屆福建省大學生程序設計競賽-重現賽(F Problem 2277 Change)DFS序+樹狀數組

Problem 2277 Change Accept: 38 Submit: 241 Time Limit: 2000 mSec Memory Limit : 262144 KB Problem Descripti

原创 hdu6038 Function

題目地址 題意:給你一個a序列,代表0到n-1的排列;一個b序列代表0到m-1的排列。問你可以找出多少種函數關係,滿足f(i)=b[f(a[i])]; 官方題解:QAQ 代碼: #include<iostream> #in

原创 HDU 6034 Balala Power!(貪心)

題目地址 題意:給a-z不同的的值(0-25),將下面的字符串看成一個26進制數,求字符串和轉化成十進制的最大值,注意如果一個字符串長度>1,則首字母不能賦值成0。 題解:貪心的想,肯定是高位出現次數多的字母賦大值,我們找一個

原创 FZU Problem 2271 X(最短路)

Problem Description X is a fully prosperous country, especially known for its complicated transportation networks.

原创 sichuan2017 E. Longest Increasing Subsequence(LIS變形)

E. Longest Increasing Subsequence Bobo learned how to compute Longest Increasing Subsequence (LIS) in O(n log n) i

原创 hdu 6031 Innumerable Ancestors(LCA+二分)

Innumerable Ancestors Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total