herrDeng網內搜尋
自訂搜尋
Ads
2014年10月1日 星期三
訂閱:
張貼留言 (Atom)
熱門文章
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
先說明一下這是後知後覺的解答,所謂後知就是股票價格已知存在陣列(清單),當然就要用迴圈練習,雙迴圈暴力解需時O(n**2),當然不用,採python單一迴圈解答「最佳股票的買賣時機#LeetCode 121 Best Time to Buy and Sell Stock」,解...
-
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
-
你會用C的算子sizeof?
-
Python C++使用字串find迴圈速解Leetcode 2490 Circular Sentence C++ & Python都有字串的find,用法都類似 split=s.find(' ', split+1)能找到s從index=split+1開...
-
Python CPP heap priority queue速解L eetcode 2530. Maximal Score After Applying K Operations heap/priority queue是重要的資料結構,無論是C++的std::priority_q...
22 則留言:
public class next {
public static void main(String[] args) {
int[][] list={ {0, 4, 0, 0, 0},
{0, 4, 6, 0, 10},
{1, 0, 6, 8, 10},
{1, 0, 6, 8, 10},
{2, 5, 7, 9, 11},
{2, 5, 7, 9, 11},
{3, 5, 7, 9, 11},
{3, 0, 0, 9, 11},
{3, 0, 0, 0, 0}};
String x[]={"空堂" ,"公民","永續發展","體育","英文","密碼學 ",
"資料結構 ","企業電子","導師 ","程式設計","統計學","資料庫"};
System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
"\t"+"\t"+"周四"+"\t"+"\t"+"周五");
System.out.println("=====================================================================");
for(int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
}
}
}
public class homework095 {
public static void main(String[] args) {
int[][] list={ {0, 4, 0, 0, 0},
{0, 4, 6, 0, 10},
{1, 0, 6, 8, 10},
{1, 0, 6, 8, 10},
{2, 5, 7, 9, 11},
{2, 5, 7, 9, 11},
{3, 5, 7, 9, 11},
{3, 0, 0, 9, 11},
{3, 0, 0, 0, 0}};
String x[]={"空堂" ,"公民","永續發展","體育","英文","密碼學 ",
"資料結構 ","企業電子","導師 ","程式設計","統計學","資料庫"};
System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
"\t"+"\t"+"周四"+"\t"+"\t"+"周五");
for(int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
}
}
}
public class ex1 {
public static void main(String[] args) {
int[][] list={
{0, 4, 0, 0, 0}, //0:空堂 1:公民 2:環境防災
{0, 4, 7, 0, 11}, //0:空堂 1:公民 2:環境防災
{1, 5, 7, 9, 11}, //3:體育 4:英文 5:國際關係
{1, 5, 7, 9, 11}, //6:密碼 7:資料結構 8:電子商務
{2, 6, 8, 10, 12}, //9:導師 10:程式設計 11:統計學
{2, 6, 8, 10, 12}, //12:資料庫管理
{3, 6, 8, 10, 12},
{3, 0, 0, 10, 12},
{0, 0, 0, 0, 0}};
String x[]={"0" ,"1","2","3","4","5 ",
"6","7","8","9","10","11"};
System.out.println("一"+"\t"+"二"+"\t"+"三
"+"\t"+"四"+"\t"+"五");
for(int i=0;i<list.length;i++){
System.out.println("\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t");
}
}
}
}
public class next {
public static void main(String[] args) {
int[][] list={ {0, 4, 0, 0, 0},
{0, 4, 6, 0, 10},
{1, 0, 6, 8, 10},
{1, 0, 6, 8, 10},
{2, 5, 7, 9, 11},
{2, 5, 7, 9, 11},
{3, 5, 7, 9, 11},
{3, 0, 0, 9, 11},
{3, 0, 0, 0, 0}};
String x[]={"英語教材教法" ,"","英文新聞","密碼學","法語","工業安全 ",
"資料結構 ","中級英文寫作","導師 ","電子商業英文","會展英文","空堂"};
System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
"\t"+"\t"+"周四"+"\t"+"\t"+"周五");
System.out.println("=====================================================================");
for(int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
public class java10233110 {
public static void main(String[] args) {
int[][] list={ {0, 4, 0, 0, 0},
{0, 4, 6, 0, 10},
{1, 0, 6, 8, 10},
{1, 0, 6, 8, 10},
{2, 5, 7, 9, 11},
{2, 5, 7, 9, 11},
{3, 5, 7, 9, 11},
{3, 0, 0, 9, 11},
{3, 0, 0, 0, 0}};
String x[]={"空堂" ,"公民","永續發展","體育","英文","密碼學 ",
"資料結構 ","企業電子","導師 ","程式設計","統計學","資料庫"};
System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
"\t"+"\t"+"周四"+"\t"+"\t"+"周五");
System.out.println("=====================================================================");
for(int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
}
}
}
package hello;
public class ex1 {
public static void main(String[] args) {
int[][] list={{0,0,0,7,0},
{0,0,5,7,10},
{1,0,5,8,10},
{1,0,5,8,10},
{2,3,6,5,11},
{2,3,6,5,11},
{0,4,6,5,11},
{0,4,0,5,11}};
String x[]={"","公民與社會","永續發展","科技烏托邦","體育","資料結構",
"企業電子化","英文","班會","程式設計","統計學","資料庫"};
System.out.println("週一"+"\t"+"\t"+"週二"+"\t"+"\t"+"週三"+"\t"+"\t"
+"週四"+"\t"+"\t"+"週五"+"\t"+"\t");
int time=0;
for (int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for (int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
}
}
}
package hello;
public class Ex01 {
public static void main(String[] args) {
int[][] list={{0,0,0,7,0},
{0,0,5,7,10},
{1,0,5,8,10},
{1,0,5,8,10},
{2,3,6,9,11},
{2,3,6,9,11},
{0,4,6,9,11},
{0,4,0,9,11}};
String x[]={"","公民與社會","永續發展","科技烏托邦","籃球","資料結構",
"企業電子化","英文","班會","進程式設計","統計學","資料庫"};
System.out.println("週一"+"\t"+"\t"+"週二"+"\t"+"\t"+"週三"+"\t"+"\t"
+"週四"+"\t"+"\t"+"週五"+"\t"+"\t");
int time=0;
for(int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
}
}
}
public class next {
public static void main(String[] args) {
int[][] list={ {0, 5, 0, 0, 0},
{0, 5, 6, 0, 10},
{1, 0, 6, 8, 10},
{1, 0, 6, 8, 10},
{2, 5, 7, 9, 11},
{2, 5, 7, 9, 11},
{3, 5, 7, 9, 11},
{3, 0, 0, 9, 11},
{0, 0, 0, 0, 0}};
String x[]={"空堂" ,"公民","永續發展","體育","英文","密碼學 ",
"資料結構 ","企業電子","導師 ","程式設計","統計學","資料庫"};
System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
"\t"+"\t"+"周四"+"\t"+"\t"+"周五");
System.out.println("=====================================================================");
for(int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
}
}
}
public class java01{
public static void main(String[] args) {
int[][] list={ {0, 4, 0, 0, 0},
{0, 4, 6, 0, 10},
{1, 0, 6, 8, 10},
{1, 0, 6, 8, 10},
{2, 5, 7, 9, 11},
{2, 5, 7, 9, 11},
{3, 5, 7, 9, 11},
{3, 0, 0, 9, 11},
{3, 0, 0, 0, 0}};
String x[]={"空堂" ,"公民","永續發展","體育","英文","日文 ",
"資料結構 ","企業電子","導師 ","程式設計","統計學","資料庫"};
System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
"\t"+"\t"+"周四"+"\t"+"\t"+"周五");
System.out.println("=====================================================================");
for(int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
}
}
}
B10233178
package classschedule;
public class schedule {
public static void main(String args[]){
int [][] schedule ={
{0,0,0,6,0},
{0,0,4,6,9},
{1,0,4,7,9},
{1,0,4,7,9},
{2,0,5,8,10},
{2,0,5,8,10},
{3,0,5,8,10},
{3,0,0,8,10},
};
String x[]= {"沒課","公民","永續發展","體育","資結","企業電子化",
"英文","導師","進階程設","統計學概論","資料庫管理"
};
System.out.println("Mon."+"\t"+"Tues."+"\t"+"Wed."+"\t"+
"Thur."+"\t"+"Fri.");
for (int i=0; i<schedule.length; i++){
System.out.println("\t"+"\t");
for (int j=0; j<schedule[i].length; j++){
System.out.print(x[schedule[i][j]]+"\t");
}
}
}
}
public class ZZ {
public static void main(String[] args) {
int[][] list={
{0, 0, 0, 7, 0},//0:空堂 1:公民 2:永續發展
{0, 0, 5, 7, 10},//3:體育 4:密碼學 5:資料結構
{1, 3, 5, 8, 10},//6:電子商務 7:英文 8:周會
{1, 3, 5, 8, 10},//9:程式設計 10:統計學 11:資料庫
{2, 4, 6, 9, 11},
{2, 4, 6, 9, 11},
{0, 4, 6, 9, 11},
{0, 0, 0, 9, 11},
{0, 0, 0, 0, 0}};
String x[]={"空堂" ,"公民","永續發展","體育","英文","密碼學 ",
"資料結構 ","電子商務","週會 ","程式設計","統計學","資料庫"};
System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
"\t"+"\t"+"周四"+"\t"+"\t"+"周五");
System.out.println("=====================================================================");
for(int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
}
}
}
public class ex1 {
public static void main(String[] args) {
int[][] list={
{0, 4, 0, 0, 0}, //0:空堂 1:公民 2:環境防災
{0, 4, 7, 0, 11}, //0:空堂 1:公民 2:環境防災
{1, 5, 7, 9, 11}, //3:體育 4:英文 5:國際關係
{1, 5, 7, 9, 11}, //6:密碼 7:資料結構 8:電子商務
{2, 6, 8, 10, 12}, //9:導師 10:程式設計 11:統計學
{2, 6, 8, 10, 12}, //12:資料庫管理
{3, 6, 8, 10, 12},
{3, 0, 0, 10, 12},
{0, 0, 0, 0, 0}};
String x[]={"0" ,"1","2","3","4","5 ",
"6","7","8","9","10","11"};
System.out.println("一"+"\t"+"二"+"\t"+"三
"+"\t"+"四"+"\t"+"五");
for(int i=0;i<list.length;i++){
System.out.println("\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t");
}
}
}
}
public class ex1 {
public static void main(String[] args) {
int[][] list={
{0, 4, 0, 0, 0}, //0:空堂 1:公民 2:環境防災
{0, 4, 7, 0, 11}, //0:空堂 1:公民 2:環境防災
{1, 5, 7, 9, 11}, // 4:英文
{1, 5, 7, 9, 11}, //6:密碼 7:資料結構 8:電子商務
{2, 6, 8, 10, 12}, //9:導師 10:程式設計 11:統計學
{2, 6, 8, 10, 12}, //12:資料庫管理
{3, 6, 8, 10, 12},
{3, 0, 0, 10, 12},
{0, 0, 0, 0, 0}};
String x[]={"0" ,"1","2","3","4","5 ",
"6","7","8","9","10","11"};
System.out.println("一"+"\t"+"二"+"\t"+"三
"+"\t"+"四"+"\t"+"五");
for(int i=0;i<list.length;i++){
System.out.println("\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t");
}
}
}
}
public class ex1 {
public static void main(String[] args) {
int[][] list={
{0, 4, 0, 0, 0}, //0:空堂 1:公民 2:環境防災
{0, 4, 7, 0, 11}, //0:空堂 1:公民 2:環境防災
{1, 5, 7, 9, 11}, //3:攝影 4:日文 5:歷史
{1, 5, 7, 9, 11}, //6:體育 7:資料結構 8:電子商務
{2, 6, 8, 10, 12}, //9:導師 10:程式設計 11:統計學
{2, 6, 8, 10, 12}, //12:資料庫管理
{3, 6, 8, 10, 12},
{3, 0, 0, 10, 12},
{0, 0, 0, 0, 0}};
String x[]={"0" ,"1","2","3","4","5 ",
"6","7","8","9","10","11"};
System.out.println("一"+"\t"+"二"+"\t"+"三
"+"\t"+"四"+"\t"+"五");
for(int i=0;i<list.length;i++){
System.out.println("\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t");
}
}
}
}
public class ex1 {
public static void main(String[] args) {
int[][] list={
{0, 4, 0, 0, 0}, //0:空白 1:空白 2:工程數學
{0, 4, 7, 0, 11}, //0:體育 1:導師 2:電子電路實習
{1, 5, 7, 9, 11}, //3:資料結構 4:電路學
{1, 5, 7, 9, 11}, //5:英文 6:空白 7:液晶螢幕原理與維修
{2, 6, 8, 10, 12}, //8:電子學 9:光學工程概論
{2, 6, 8, 10, 12}, //10:美學
{3, 6, 8, 10, 12},
{3, 0, 0, 10, 12},
{0, 0, 0, 0, 0}};
String x[]={"0" ,"1","2","3","4","5 ",
"6","7","8","9","10","11"};
System.out.println("一"+"\t"+"二"+"\t"+"三
"+"\t"+"四"+"\t"+"五");
for(int i=0;i<list.length;i++){
System.out.println("\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t");
}
}
}
}
public class ex01 {
public static void main(String[] args) {
int[][] list={
{0, 4, 0, 0, 0}, //0:空堂 1:公民 2:環境防災
{0, 4, 7, 0, 11}, //0:空堂 1:公民 2:環境防災
{1, 5, 7, 9, 11}, //3:攝影 4:日文 5:歷史
{1, 5, 7, 9, 11}, //6:體育 7:資料結構 8:電子商務
{2, 6, 8, 10, 12}, //9:導師 10:程式設計 11:統計學
{2, 6, 8, 10, 12}, //12:資料庫管理
{3, 6, 8, 10, 12},
{3, 0, 0, 10, 12},
{0, 0, 0, 0, 0}};
String x[]={"0" ,"1","2","3","4","5 ",
"6","7","8","9","10","11"};
System.out.println("一"+"\t"+"二"+"\t"+"三
"+"\t"+"四"+"\t"+"五");
for(int i=0;i<list.length;i++){
System.out.println("\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t");
}
}
}
}
public class ex001 {
public static void main(String[] args) {
int[][] list={
{0, 4, 0, 0, 0}, //0:空堂 1:公民 2:環境防災
{0, 4, 7, 0, 11}, //0:空堂 1:公民 2:環境防災
{1, 5, 7, 9, 11}, //3:攝影 4:日文 5:歷史
{1, 5, 7, 9, 11}, //6:體育 7:資料結構 8:電子商務
{2, 6, 8, 10, 12}, //9:導師 10:程式設計 11:統計學
{2, 6, 8, 10, 12}, //12:資料庫管理
{3, 6, 8, 10, 12},
{3, 0, 0, 10, 12},
{0, 0, 0, 0, 0}};
String x[]={"0" ,"1","2","3","4","5 ",
"6","7","8","9","10","11"};
System.out.println("一"+"\t"+"二"+"\t"+"三
"+"\t"+"四"+"\t"+"五");
for(int i=0;i<list.length;i++){
System.out.println("\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t");
}
}
}
}
public class ex01 {
public static void main(String[] args) {
int[][] list={
{0, 4, 0, 0, 0}, //0:空堂 1:公民 2:環境防災
{0, 4, 7, 0, 11}, //0:空堂 1:公民 2:環境防災
{1, 5, 7, 9, 11}, //3:攝影 4:日文 5:歷史
{1, 5, 7, 9, 11}, //6:體育 7:資料結構 8:電子商務
{2, 6, 8, 10, 12}, //9:導師 10:程式設計 11:統計學
{2, 6, 8, 10, 12}, //12:資料庫管理
{3, 6, 8, 10, 12},
{3, 0, 0, 10, 12},
{0, 0, 0, 0, 0}};
String x[]={"0" ,"1","2","3","4","5 ",
"6","7","8","9","10","11"};
System.out.println("一"+"\t"+"二"+"\t"+"三
"+"\t"+"四"+"\t"+"五");
for(int i=0;i<list.length;i++){
System.out.println("\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t");
}
}
}
}
public class next {
public static void main(String[] args) {
int[][] list={ {0, 5, 0, 0, 0},
{0, 5, 6, 0, 10},
{1, 0, 6, 8, 10},
{1, 0, 6, 8, 10},
{2, 5, 7, 9, 11},
{2, 5, 7, 9, 11},
{3, 5, 7, 9, 11},
{3, 0, 0, 9, 11},
{0, 0, 0, 0, 0}};
String x[]={"空堂" ,"公民","永續發展","體育","英文","密碼學 ",
"資料結構 ","企業電子","導師 ","程式設計","統計學","資料庫"};
System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
"\t"+"\t"+"周四"+"\t"+"\t"+"周五");
System.out.println("=====================================================================");
for(int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
}
}
}
package hey;
public class ex1 {
public static void main(String[] args) {
int[][] list={{0,0,0,7,0},
{0,0,5,7,10},
{1,0,5,8,10},
{1,0,5,8,10},
{2,3,6,5,11},
{2,3,6,5,11},
{0,4,6,5,11},
{0,4,0,5,11}};
String x[]={"","公民與社會","永續發展","體育","英文","科技烏托邦","資料結構",
"企業電子化","班會","程式設計","統計學","資料庫"};
System.out.println("週一"+"\t"+"\t"+"週二"+"\t"+"\t"+"週三"+"\t"+"\t"
+"週四"+"\t"+"\t"+"週五"+"\t"+"\t");
int time=0;
for (int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for (int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
}
}
}
public class ex1 {
public static void main(String[] args) {
int[][] list={
{0, 4, 0, 0, 0}, //0:空堂 1:公民 2:環境防災
{0, 4, 7, 0, 11}, //0:空堂 1:公民 2:環境防災
{1, 5, 7, 9, 11}, //3:攝影 4:日文 5:歷史
{1, 5, 7, 9, 11}, //6:體育 7:資料結構 8:電子商務
{2, 6, 8, 10, 12}, //9:導師 10:程式設計 11:統計學
{2, 6, 8, 10, 12}, //12:資料庫管理
{3, 6, 8, 10, 12},
{3, 0, 0, 10, 12},
{0, 0, 0, 0, 0}};
String x[]={"0" ,"1","2","3","4","5 ",
"6","7","8","9","10","11"};
System.out.println("一"+"\t"+"二"+"\t"+"三
"+"\t"+"四"+"\t"+"五");
for(int i=0;i<list.length;i++){
System.out.println("\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t");
}
}
}
}
public class text1
{
public static void main(String[] args) {
int[][] list={ {0, 0, 0, 7, 10},
{1, 0, 0, 7, 10},
{1, 0, 5, 8, 10},
{1, 0, 5, 8, 10},
{2, 3, 6, 9, 11},
{2, 3, 6, 9, 11},
{2, 4, 6, 9, 12},
{0, 4, 6, 0, 12},
{0, 4, 0, 0, 0}};
String x[]={"空堂" ,"統計學概論","企業電子化","勇需發展-環境與防災","資料結構","公民社會與倫理-公民德行 ",
"進階程式設計 ","英文","導師 ","生產管理","資料庫管理","羽球","舞蹈欣賞"};
System.out.println("周一"+"\t"+"\t"+"周二"+"\t"+"\t"+"周三"+
"\t"+"\t"+"周四"+"\t"+"\t"+"周五");
System.out.println("=====================================================================");
for(int i=0;i<list.length;i++){
System.out.println("\t"+"\t");
for(int j=0;j<list[i].length;j++){
System.out.print(x[list[i][j]]+"\t"+"\t");
}
}
}
}
張貼留言