原创 hdu1978

How many ways Problem Description 這是一個簡單的生存遊戲,你控制一個機器人從一個棋盤的起始點(1,1)走到棋盤的終點(n,m)。遊戲的規則描述如下: 1.機器人一開始在棋盤的起始點並有起始點所標有的能量。

原创 hdu1171

免費餡餅 Problem Description 都說天上不會掉餡餅,但有一天gameboy正走在回家的小徑上,忽然天上掉下大把大把的餡餅。說來gameboy的人品實在是太好了,這餡餅別處都不掉,就掉落在他身旁的10米範圍內。餡餅

原创 hdu5547 dfs

Sudoku Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 65535/65535 K (Java/Others) Total Submission(s): 646    

原创 hdu1078 記憶化搜索

FatMouse and Cheese Problem Description FatMouse has stored some cheese in a city. The city can be considered as a

原创 cs231n assignment1--two_layer_net

神經網絡部分。要先把理論知識搞的比較清楚纔好寫作業。 梯度推導參考: http://www.jianshu.com/p/004c99623104multiclass 梯度推導: 調整參數部分,一開始想要把參數綜合起來找一個最優參數

原创 Codeforces Round #404 (Div. 2) C題

C. Anton and Fairy Tale time limit per test 1 second memory limit per test 256 megabytes input standard input ou

原创 Codeforces Round #402 (Div2)E題

E. Bitwise Formula time limit per test 3 seconds memory limit per test 512 megabytes input standard input output

原创 Codeforces Round #402 (Div2)D題

D. String Game time limit per test 2 seconds memory limit per test 512 megabytes input standard input output st

原创 Codeforces Round #404 (Div. 2) A題

A. Anton and Polyhedronstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard

原创 Codeforces Round #402 (Div. 2) B題

B. Weird Rounding time limit per test 1 second memory limit per test 256 megabytes input standard input output s

原创 cs231 assignment1--KNN

這次作業的主要的難點: 實現訓練集和測試集之間距離的方法,主要是用向量形式來實現的部分 交叉檢驗的部分 import numpy as np from collections import Counter class KNearest

原创 Codeforces Round #404 (Div. 2) B題

B. Anton and Classes time limit per test 4 seconds memory limit per test 256 megabytes input standard input outp

原创 poj1950 深搜

Dessert Description FJ has a new rule about the cows lining up for dinner. Not only must the N (3 <= N <= 15) cows line

原创 Codeforces Round #402 (Div. 2) A題

A. Pupils Redistribution time limit per test 1 second memory limit per test 256 megabytes input standard i

原创 cs231n assignment1--svm

本節作業的難點主要是svm的梯度向量的求解,在完成作業的時候找了大量的資料才求解出來。 首先是矩陣求導的問題,我是參考以下博客: http://www.cnblogs.com/huashiyiqike/p/3568922.html 在這