原创 SDUT 序列

序列 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Problem Description 我們來定義這樣一種序列,這個序列的第一個數字是n,並且數

原创 Book Pile (雙端隊列)

There is a pile of N books on the table. Two types of operations are performed over this pile: - a book is added t

原创 組合(Lucas)

Lucas 是用來求組合數取模的。 Lucas 定理:A、B是非負整數,p是質數。AB寫成p進制:A=a[n]a[n-1]…a[0],B=b[n]b[n-1]…b[0]。 可以求逆元來解決,用費馬小定理,或者是擴展

原创 取石子系列----四 取石子(六)(尼姆博弈)

取石子(六) 時間限制:1000 ms | 內存限制:65535 KB 難度:3 描述 最近TopCoder的PIAOYI和HRDV很無聊,於是就想了一個遊戲,遊戲是這樣的:有n堆石子,兩個人輪流從其中某一堆中任意取走

原创 SDUT數三角形

數三角形 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Problem Description 有多少種方法可以從1,2,3,4,….,n中選出3個

原创 D - 石之錘 URAL - 1146 (最大子矩陣和)

Given a 2-dimensional array of positive and negative integers, find the sub-rectangle with the largest sum. The sum

原创 風之羽翼 URAL - 1119

Many of SKB Kontur programmers like to get to work by Metro because the main office is situated quite close the sta

原创 R語言 安裝過程

安裝網址:R網址 https://www.r-project.org/ 3. 4. 5.如果是第一次安裝,選擇base 6. 7.下載完成之後,雙擊運行。 8.選擇需要的語言 9. 10. 11. 12

原创 Mit 6.824筆記(持續更新,歡迎指正)

Introduction 1.什麼是分佈式系統? 核心:通過網絡使一羣計算機通過相互通信來完成一些連貫的任務。 例子:存儲爲大網站或者大數據計算(MapReduce)以及點對點文件共享等等 原因:許多關鍵的基礎設施是分佈式的

原创 Go語言聖經練習題(私人答案,持續更新,歡迎討論)

Go語言聖經網址: 練習 1.1: 修改echo程序,使其能夠打印os.Args[0],即被執行命令本身的名字。 package main import ( "fmt" "os" ) func main() { //定義

原创 Go語言安裝(Windows 64bit)

一、簡介及安裝 簡介 2012年有了Go1的穩定版本。Go語言適用於高性能的分佈式系統,支持海量並行。Go是一個精小強大的現代語言。 安裝 Go語言安裝:Windows 64bit 首先,打開網址:https://golang.

原创 F - 水之矢 URAL - 1353

Vasya is the beginning mathematician. He decided to make an important contribution to the science and to become fam

原创 Cycling Roads

幾何 When Vova was in Shenzhen, he rented a bike and spent most of the time cycling around the city. Vova was approac

原创 Discovering Gold(基礎概率dp)

You are in a cave, a long cave! The cave can be represented by a 1 x N grid. Each cell of the cave can contain any

原创 SDUT Time

Time Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Problem Description Digital clock use 4 digits