Time of Update: 2018-12-03
題目描述將十進位數轉換為八進位,並輸出。圖:將十進位數轉換為八進位並輸出 輸入輸入包含若干十進位正整數。 輸出輸出相應的八位元,每個佔一行。 範例輸入1237891910020345 範例輸出123710112346162771 提示 [+]*** 提示已隱藏,點擊上方 [+] 可顯示 *** 來源資料結構演算法教學題——張飛飛 /********************************** 日期:2013-2-19* 作者:SJF0115* 題號: 天勤OJ 題目1020:
Time of Update: 2018-12-03
最近在各論壇下載了n多APKTool和signapk工具,使用結果不理想,老是會出現一些問題,現將工具重新整合修改,分享給需要的人。一.工具包使用環境:XP、JDK環境1,JDK:sun官方下載頁面http://www.oracle.com/technetwork/java/javase/downloads/index.html(點擊Download JDK按鈕),下載後直接全預設安裝JDK
Time of Update: 2018-12-03
#include<iostream>using namespace std;int n,cost=0;int x[100],c[100][100];void work(int i,int count){ if(i>n && count<cost){ cost = count; return ; } if(count<cost) for(int j=1;j<=n;j++)
Time of Update: 2018-12-03
/*生產者與消費者問題的實現。建立一組“生產者”線程和一組“消費者”線程,並建立一個長度為N的緩衝池。“生產者”向緩衝區輸入資料,“消費者”從緩衝區讀出資料。當緩衝區滿時,“生產者”必須阻塞,等待“消費者”取走緩衝區資料後將其喚醒。當緩衝區空時,“消費者”阻塞,等待“生產者”生產了產品後將其喚醒。用訊號量實現“生產者”與“消費者”線程之間的同步。 */#include <windows.h>#include <iostream>#include<cstdio>
Time of Update: 2018-12-03
題目描述給定兩個正整數,計算這兩個數的最小公倍數。 輸入輸入包含多組測試資料,每組只有一行,包括兩個不大於1000的正整數。 輸出對於每個測試案例,給出這兩個數的最小公倍數,每個執行個體輸出一行。 範例輸入20 15 範例輸出60 提示 [+]*** 提示已隱藏,點擊上方 [+] 可顯示 *** 來源簡單數學題 /********************************* * 日期:2013-3-19* 作者:SJF0115 * 題號: 題目1133: 最小公倍數*
Time of Update: 2018-12-03
/* 時間:2011-11-21 作者:xiaosi 題目:子集和問題*/#include<iostream>#include<cstdio>using namespace std;#define M 100class SumOfSub{ friend void sumofsub(); private: void Backtrack(int t); int count; int n; int c;
Time of Update: 2018-12-03
題目描述Xiao Ming's parents visit ZJU and Xiao Ming want to take them to look around the campus.They will start from the stone with two famous question raised by President Zhu Kezhen and end at largest dining room in Asia.They want to visit every place
Time of Update: 2018-12-03
/* 時間:2011-11-21 作者:xiaosi 題目:n皇后問題*/#include<iostream>#include<cstdio>#include<cmath>using namespace std;#define M 100class Queen{ friend void nQueen(); private: void Backtrack(int t); bool Place(int k);
Time of Update: 2018-12-03
等級控制項ratingBar的顯示有點單調,想著把他改成其他我需要的圖片。參考網上資料,嘗試了一下,很簡單的記錄一下。原圖修改 很簡單的配置1.<RatingBar android:id="@+id/rate_bar" android:layout_width="wrap_content" android:layout_height="wrap_content"
Time of Update: 2018-12-03
題目描述Welcome to apply for Zhejiang University.Each ZJU's professor's only admiss one student.And professors' recruitment criteria are different.Professor only recruit the student whoes exam result is between A and B,including A and B.And then
Time of Update: 2018-12-03
題目描述DotA(Defence of the Ancients) is very popular in Zhejiang University.Now a new hero appears in DotA.This hero has a miraculous skill.If the target's HP n is an even number,then it will be cut in half after skill-using.Otherwise the targe's HP
Time of Update: 2018-12-03
題目描述Xiao Ming always tends to ignore the carry when he does decimal addition with paper and pencil.For example,15+17,Xiao Ming will answer 22,because he ignores the carry from the single digits.5+7=12,and the digit 1 is the carry. 輸入The input will
Time of Update: 2018-12-03
/********************************* * 日期:2013-1-13 * 作者:SJF0115 * 題號: 九度1050 * 題目:完數 * 來源:http://ac.jobdu.com/problem.php?pid=1050 * 結果:AC * 題意: * 總結:**********************************/ #include <stdio.h>#include <
Time of Update: 2018-12-03
生產者-消費者是很有意思的一種演算法。它的存在主要是兩個目的,第一就是滿足生產者對資源的不斷創造;第二就是滿足消費者對資源的不斷索取。當然,因為空白間是有限的,所以資源既不能無限儲存,也不能無限索取。 生產者的演算法 WaitForSingleObject(hEmpty, INFINITE); WaitForSingleObject(hMutex, INIFINITE); /* produce new resources */
Time of Update: 2018-12-03
上篇中我們學習了指定Sdcard中音樂播放,但是遊戲中的音效如何?呢?遊戲中是肯定和程式打包發布的。這樣的音樂就沒有放在Sdcard中,一般會放在應用目錄下的“res/raw”下。那如何?音樂播放呢?其實很簡單呐,我只不過把setDataSource()方法改成create()方法來指定資源索引的MediaPlayer對象。 package xiaosi.mp3;import android.app.Activity;import
Time of Update: 2018-12-03
#include <stdio.h>#include <stdlib.h>typedef struct s_mouse{int id;int weight;int speed;}s_mouse;static s_mouse mice[1000];static int m[1000];static int s[1000];//static int p[1000];static int num;int m_compare(const void *a,const void
Time of Update: 2018-12-03
package xiaosi.mp3;import java.io.File;import java.io.IOException;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import android.app.ListActivity;import android.media.MediaPlayer;import
Time of Update: 2018-12-03
#include "windows.h"#define ID_FILE_EXIT 9001 //定義菜單的id號 #define ID_STUFF_GO 9002 CONST char g_szClassName[]="myWindowsClass"; //定義視窗類別的名稱數組 LRESULT CALLBACK WndProc(HWND hwnd ,UINT msg,WPARAM wParam,LPARAM lParam) //訊息處理常式 { switch(msg)
Time of Update: 2018-12-03
import java.awt.EventQueue;import java.util.logging.Level;import java.util.logging.Logger;import javax.swing.GroupLayout;import javax.swing.JFrame;import javax.swing.UIManager;import javax.swing.UnsupportedLookAndFeelException;import tool.ScreenSize;
Time of Update: 2018-12-03
#include <windows.h>#include <stdio.h>#define MAX_SEM_COUNT 1#define INI_SEM_COUNT 0#define THREADCOUNT 2 #define STATIONS 3 HANDLE ghSemaphore_driver;HANDLE ghSemaphore_conductor;DWORD WINAPI ThreadDriver( LPVOID );DWORD WINAPI