Time of Update: 2014-08-04
標籤:io 資料 for 問題 ar 資料庫 sql c Database returned an invalid value in QuerySet.datetimes(). Are time zone
Time of Update: 2014-08-04
標籤:資料線 容易壞 一個良好的設計能夠解決看起來豪不相干的問題。 前兩天M3的資料線壞了,彎一下靠近手機的插孔就能充電,手一松就充不了電了。 今天突然想到每次充電的時候用手機發資訊、玩遊戲都特別不方便,才想到為什麼資料線容易壞了。 因為插座在前邊或旁邊,我把充電的手機拿過來的時候線就是彎著的,發資訊、玩遊戲都會抖動手機,資料線當然也會跟著抖,就這樣資料線在無數次抖動下終於折斷了。 如果充電插孔設計在手機頂部,恐怕資
Time of Update: 2014-08-04
標籤:acm algorithm dp 題目連結:http://acm.hdu.edu.cn/showproblem.php?pid=1284思路:只有3個硬幣,範圍是32768,可以一個一個枚舉硬幣,如果只放價值為1的硬幣,從d[1]遞推到d[n];如果再加上價值為2的硬幣,那麼就從d[2]遞推到d[n];在加上價值為3的硬幣,就從d[3]遞推到d[n
Time of Update: 2014-08-04
標籤:io for amp c return print class string 給一個n,要求構造一個矩陣,滿足:1、矩陣大小為(2n+1)*(2n+1)2、沿對角線對稱3、每個數的值在[0,2
Time of Update: 2014-08-04
標籤:style http 使用 io 資料 ar line amp Nice boat大意:給你一個區間,每次可以進行兩種操作,1:把區間中的數全都變成x 2:把區間中大於x的數變成gcd(a[i],
Time of Update: 2014-08-04
標籤:style http color os io for ar div 連結:帶我學習,帶我飛第一次BC,穩掛,WA n多次,今天重新做了一下略挫#include <iostream>#include
Time of Update: 2014-08-04
標籤:acm dp algorithm 題目連結:http://acm.hdu.edu.cn/showproblem.php?pid=1398類似hdu 1284
Time of Update: 2014-08-04
標籤:os io for ar amp size c ios 邊權為1,在維護最短路的同時維護p值最小,我直接存的(1-p),即不遇見的機率,要使得這個值最大。#include
Time of Update: 2014-08-04
標籤:os io for 問題 ar amp size c 題目大意:求出給的n個串中。精確到只有一個字元不同,兩個字元不同,三個字元不同,四個字元不同的對數。思路分析:枚舉狀態。dp[i] [j] ...表示當前串取出 i
Time of Update: 2014-08-04
標籤:背包問題 poj http://poj.org/problem?id=1384Piggy-BankTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 7900Accepted: 3813DescriptionBefore ACM can do anything, a budget must be prepared and
Time of Update: 2014-08-04
標籤:style blog http color os io 2014 ar 我們把只包含因子2、3和5的數稱作醜數(Ugly Number)。例如6、8都是醜數,但14不是,因為它包含因子7。方法1 :暴力破解,逐個判斷代碼:
Time of Update: 2014-08-04
標籤:des style blog os io for 2014 art DescriptionSome people believe that there are three cycles in a person‘s
Time of Update: 2014-08-04
標籤:poj dfs zoj Red and BlackTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 22300 Accepted: 12041DescriptionThere is a rectangular room, covered with square tiles. Each tile is
Time of Update: 2014-08-04
標籤:oracle sga_target shmmax shmall SGA_TARGET與SHMMAX的關係參考原文:Relationship Between SGA_TARGET and SHMMAX (文檔 ID 1527109.1)適用於:Oracle Database - Enterprise Edition - Version 10.1.0.2
Time of Update: 2014-08-04
標籤:des style color io ar 代碼 div line Problem Description:Divide two integers without using multiplication,
Time of Update: 2014-08-04
標籤:資料結構 排序演算法 堆排序 直接選擇排序 上篇總結中主要實踐了演算法的內排序的交換排序,那麼接下來我們繼續實踐選擇排序的兩種:直接選擇和堆排序演算法。-----直接選擇排序package com.sort;/** * 直接選擇排序演算法 * @author weixing-yang * * 演算法思路: *
Time of Update: 2014-08-04
標籤:poj//next_permutation全排列# include <stdio.h># include <algorithm># include <string.h>using namespace std;struct node{int w;int v;};struct node a[10010];int max1(int x,int y){return x>y?x:y;}int main(){int
Time of Update: 2014-08-04
標籤:qt5 移植 交叉編譯 觸控螢幕 linux 最近剛入手一款開發板(比較低端,剛畢業工作還沒一個月,窮屌絲一個)。在學校以前都是用的是Friendly Arm的6410,使用的qt版本是使用的最多的4.7.0版本,入手的板子是4.7.4。qt5出來也有好長的時間了,其中提供了很多的特性,所以這次移植的是qt5的最新版本5.
Time of Update: 2014-08-04
標籤:leetcodeImplement pow(x, n).思路:快速冪運算,需要考慮指數為負數,同時底數為0的情況,這種屬於異常資料,代碼裡沒有體現。class Solution {public: double pow_abs(double x, unsigned int n) { if (n == 0) { return 1; } if (n == 1) { return
Time of Update: 2014-08-04
標籤:os io for ar 演算法 amp 應用 c 對於KMP演算法中next函數的應用題意是對於一個字串的首碼和尾碼比較是否相等,再把相等的可能按字串長度進行輸出#include