herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (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 CPP heap priority queue速解L eetcode 2530. Maximal Score After Applying K Operations heap/priority queue是重要的資料結構,無論是C++的std::priority_q...
-
C++ DP動態規劃解Leetcode 937 Maximum Number of Points with Cost 有些標示medium要比標示hard的問題還要難,Leetcode 1937. Maximum Number of Points with Cost,DP動態規...
34 則留言:
// 0=無, 1=資料結構, 2=人類活動與地球環境變遷, 3=公民社會概論, 4=英文, 5=導師, 6=統計學, 7=企業電子化, 8=資料庫管理系統
int[][] courses = {
{0,0,0,4,0,0},
{0,0,0,4,7,0},
{0,3,0,5,7,0},
{0,3,0,5,7,0},
{1,0,0,6,8,0},
{1,0,0,6,8,0},
{1,0,0,6,8,0},
{2,0,0,0,0,0},
{2,0,0,0,0,0}
};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 7 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
package go;
public class FBI {
public static void main(String[] args) {
// 0:空堂,1:資料結構,2:人類活動與地球環境變遷,3:公民社會概論,4:體育,5:密碼學,6:英文,7:導師,8:統計學,9:企業電子化,10:資料庫管理系統
int[][] courses={{0,0,0,6,0},
{0,0,5,6,9},
{0,3,5,7,9},
{0,3,5,7,9},
{1,4,0,8,10},
{1,4,0,8,10},
{1,0,0,8,10},
{2,0,0,0,0},
{2,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
import java.util.*;
public class karama {
public static void main(String[]args){
int d;
int [][] a = {{0,1,0,2,0},
{3,1,,2,4},
{3,5,8,6,4},
{3,5,8,6,4},
{7,0,0,9,10},
{7,0,0,9,10},
{7,0,0,9,10},
{11,0,0,0,0},
{11,0,0,0,0}};
for(int b=1;b<=5;b++){
System.out.print(b+"\t");
}
for (int c=0;c<=8;c++){
System.out.println("");
for (int e=0;e<=4;e++){
d=a[c][e];
System.out.println (d);
}
}
}
}
import java.util.*;
public class karama {
public static void main(String[]args){
int d;
int [][] a = {{0,1,0,2,0},
{3,1,0,2,4},
{3,5,8,6,4},
{3,5,8,6,4},
{7,0,0,9,10},
{7,0,0,9,10},
{7,0,0,9,10},
{11,0,0,0,0},
{11,0,0,0,0}};
for(int b=1;b<=5;b++){
System.out.print(b+"\t");
}
for (int c=0;c<=8;c++){
System.out.println("");
for (int e=0;e<=4;e++){
d=a[c][e];
System.out.println (d);
}
}
}
}
package ab;
public class ex3 {
public static void main(String[] args) {
// 0:空堂,1:英文,2:公民社會概論,3:密碼學,4:導師,5:企業電子化,6:資料結構,7:人類活動與地球環境變化,8:體育,9:統計學,10:資料庫管理系統
int[][] courses={{0,0,0,1,0},
{0,0,3,1,5},
{0,2,3,4,5},
{0,2,3,4,5},
{6,8,0,9,10},
{6,8,0,9,10},
{6,0,0,9,10},
{7,0,0,0,0},
{7,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package ab;
public class ket {
public static void main(String[] args)
{
// 0:空堂,1:英文,2:公民社會概論,3:密碼學,4:導師,5:企業電子化,6:資料結構,7:人類活動與地球環境變化,8:體育,9:統計學,10:資料庫管理系統
int[][] courses={
{0,1,0,0,0},
{0,1,3,0,5},
{0,2,3,4,5},
{0,2,3,4,5},
{6,8,0,9,10},
{6,8,0,9,10},
{6,0,0,9,10},
{7,0,0,0,0},
{7,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package ab;
public class san {
public static void main(String[] args)
{
// 0:空堂,1:英文,2:公民社會概論,3:密碼學,4:導師,5:企業電子化,6:資料結構,7:人類活動與地球環境變化,8:體育,9:統計學,10:資料庫管理系統
int[][] courses={
{0,0,0,1,0},
{0,0,3,1,5},
{0,2,3,4,5},
{0,2,3,4,5},
{6,8,0,9,10},
{6,8,0,9,10},
{6,0,0,9,10},
{7,0,0,0,0},
{7,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package ab;
public class wei {
public static void main(String[] args)
{
// 0:空堂,1:英文,2:公民社會概論,3:密碼學,4:導師,5:企業電子化,6:資料結構,7:人類活動與地球環境變化,8:體育,9:統計學,10:資料庫管理系統,11:物件導向,12:國文
int[][] courses={
{0,1,0,0,0},
{11,1,3,0,5},
{11,2,3,4,5},
{11,2,3,4,5},
{6,8,0,9,10},
{6,8,0,9,10},
{6,12,0,9,10},
{7,12,0,0,0},
{7,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package ab;
public class ex1 {
public static void main(String[] args) {
// 0:空堂,1:英文,2:公民社會概論,3:密碼學,4:導師,5:企業電子化,6:資料結構,7:人類活動與地球環境變化,8:體育,9:統計學,10:資料庫管理系統
int[][] courses={
{0,1,0,0,0},
{0,1,3,0,5},
{0,2,3,4,5},
{0,2,3,4,5},
{6,8,0,9,10},
{6,8,0,9,10},
{6,0,0,9,10},
{7,0,0,0,0},
{7,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package ab;
public class ex1 {
public static void main(String[] args) {
// 0:空堂,1:英文,2:公民社會概論,3:體育,4:導師,5:企業電子化,6:資料結構,7:人類活動與地球環境變化,8:統計學,9:資料庫管理系統
int[][] courses={
{0,1,3,0,0},
{0,1,3,0,5},
{0,2,0,4,5},
{0,2,0,4,5},
{6,0,0,8,9},
{6,0,0,8,9},
{6,0,0,8,9},
{7,0,0,0,0},
{7,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
public class hello {
public static void main(String[] args)
{
//空堂=0
//休閒活動規劃與管理=1
// 資料結構=2
// 人類活動與地球環境變遷=3
// 英文=4
// 公民社會概論=5
// 生產管理=6
// 體育=7
// 班會=8
// 統計學=9
// 企業電子化=10
// 資料庫管理系統=11
int t;
int cos[][]={{0,4,7,0,0},
{0,4,7,0,10},
{1,5,0,8,10},
{1,5,0,8,10},
{2,6,0,9,11},
{2,6,0,9,11},
{2,6,0,9,11},
{3,0,0,0,0},
{3,0,0,0,0}};
for(int x=0;x<5;x++){
System.out.print("\t星期"+(x+1)+"\t");
}
System.out.println();
for(int i=0;i<cos.length;i++){
System.out.print("第"+(i+1)+"節 ");
for(int j=0;j<cos[i].length;j++){
t=cos[i][j];
switch(t){
case 0:
System.out.print("\t空 堂"+"\t");
break;
case 1:
System.out.print("\t休閒活動");
break;
case 2:
System.out.print("\t資料結構");
break;
case 3:
System.out.print("\t人類活動"+"\t");
break;
case 4:
System.out.print("\t英文");
break;
case 5:
System.out.print("\t\t公民社會"+"\t");
break;
case 6:
System.out.print("\t\t生產管理"+"\t");
break;
case 7:
System.out.print("\t\t體 育"+"\t");
break;
case 8:
System.out.print("\t班 會");
break;
case 9:
System.out.print("\t統計學 ");
break;
case 10:
System.out.print("\t\t企業電子");
break;
case 11:
System.out.print("\t\t資料庫 ");
break;
}
}
System.out.println();
}
}
}
import java.util.*;
public class ak1 {
public static void main(String[]args){
int d;
int [][] a = {{0,4,0,0,0},
{0,4,0,0,10},
{1,5,0,8,10},
{1,5,0,8,10},
{2,6,0,9,11},
{2,6,0,9,11},
{2,7,0,9,11},
{3,7,0,0,0},
{3,0,0,0,0}};
for (int b=1;b<=5;b++){
System.out.print(b+"\t");
}
for (int c=0;c<=8;c++){
System.out.println("");
for (int e=0;e<=4;e++){
d=a[c][e];
switch(d){
case 0 :
System.out.print("空堂\t");
break;
case 1:
System.out.print("體育\t");
break;
case 2:
System.out.print("資料結構\t");
break;
case 3:
System.out.println("人類活動與");
System.out.print("地球環境變遷\t");
break;
case 4:
System.out.print("英文\t");
break;
case 5:
System.out.print("公民社會概論\t");
break;
case 6:
System.out.print("數位影像藝術\t");
break;
case 7:
System.out.print("古蹟與文化\t");
break;
case 8:
System.out.print("導師\t");
break;
case 9:
System.out.print("統計學\t");
break;
case 10:
System.out.print("企業電子化\t");
break;
case 11:
System.out.print("資料庫管理\t");
break;
}
}
}
}
}
package love;
public class live {
public static void main(String[] args) {
// 0:空堂,1:體育,2:資料結構,3:人類與地球環境變遷,4:公民與社會概論,5:數位影像藝術,6:英文,7:導師,8:統計學,9:企業電子化,10:資料庫管理系統
int[][] courses={
{0,0,0,6,9},
{0,0,0,6,9},
{1,4,0,7,9},
{1,4,0,7,10},
{2,0,0,8,10},
{2,0,0,8,10},
{2,5,0,8,0},
{3,5,0,0,0},
{3,0,0,0,0}
};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 7 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
import java.util.*;
public class Class {
public static void main(String[]args){
int d;
int [][] a =
{{0,1,0,2,0},
{3,1,4,2,5},
{3,6,4,7,5},
{3,6,4,7,5},
{8,9,0,10,11},
{8,9,0,10,11},
{8,0,0,10,11},
{12,0,0,0,0},
{12,0,0,0,0}};
for (int b=1;b<=5;b++){
System.out.print(b+"\t");
}
for (int c=0;c<=8;c++){
System.out.println("");
for (int e=0;e<=4;e++){
d=a[c][e];
switch(d){
case 0 :
System.out.print("空堂\t");
break;
case 1:
System.out.print("英文\t");
break;
case 2:
System.out.print("基礎日文\t");
break;
case 3:
System.out.print("物件導向技術\t");
break;
case 4:
System.out.print("密碼學\t");
break;
case 5:
System.out.print("企業電子化\t");
break;
case 6:
System.out.print("公民社會概論 ");
break;
case 7:
System.out.print("導師\t");
break;
case 8:
System.out.print("資料結構\t");
break;
case 9:
System.out.print("體育(羽球)\t");
break;
case 10:
System.out.print("統計學\t");
break;
case 11:
System.out.print("資料庫管理\t");
break;
case 12:
System.out.print("人類活動與地球環境變遷\t");
break;
}
}
}
}
}
package go;
public class adc {
public static void main(String[] args) {
// 0:空堂,1:資料結構,2:人類活動與地球環境變遷,3:公民社會概論,4:體育,5:物件導向,6:密碼學,7:英文,8:導師,9:統計學,10:企業電子化,11:資料庫管理系統
int[][] sup={{0,0,0,7,0},
{5,0,6,7,10},
{5,3,6,8,10},
{5,3,6,8,10},
{1,4,0,9,11},
{1,4,0,9,11},
{1,0,0,9,11},
{2,0,0,0,0},
{2,0,0,0,0}};
for (int i = 0; i < sup.length; i += 1) {
for (int j = 0; j < sup[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
public class abc {
public static void main(String[] args) {
// 0:空堂,1:資料結構,2:人類活動與地球環境變化,3:英文,4:公民社會概論,5:體育,6:密碼學,7:導師,8:統計學,9:企業電子化,10:資料庫管理系統
int[][] courses={
{0,3,0,0,0},
{0,3,6,0,9},
{0,4,6,7,9},
{0,4,6,7,9},
{1,5,0,8,10},
{1,5,0,8,10},
{1,0,0,8,10},
{2,0,0,0,0},
{2,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package go;
public class sam {
public static void main(String[] args) {
// 0:空堂,1:資料結構,2:人類活動與地球環境變遷,3:公民社會概論,4:體育,5:物件導向,6:基礎日文,7:英文,8:導師,9:統計學,10:企業電子化,11:資料庫管理系統
int[][] adc={{0,0,0,7,0},
{5,0,6,7,10},
{5,3,6,8,10},
{5,3,0,8,10},
{1,4,0,9,11},
{1,4,0,9,11},
{1,0,0,9,11},
{2,0,0,0,0},
{2,0,0,0,0}};
for (int i = 0; i < adc.length; i += 1) {
for (int j = 0; j < adc[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
// 0=無, 1=資料結構, 2=人類活動與地球環境變遷, 3=公民社會概論, 4=英文, 5=導師, 6=統計學, 7=企業電子化, 8=資料庫管理系統
int[][] courses = {
{0,0,0,4,0,0},
{0,0,0,4,7,0},
{0,3,0,5,7,0},
{0,3,0,5,7,0},
{1,0,0,6,8,0},
{1,0,0,6,8,0},
{1,0,0,6,8,0},
{2,0,0,0,0,0},
{2,0,0,0,0,0}
};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 7 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
package go;
public class FBI {
public static void main(String[] args) {
// 0:空堂,1:資料結構,2:人類活動與地球環境變遷,3:公民社會概論,4:體育,5:密碼學,6:英文,7:導師,8:統計學,9:企業電子化,10:資料庫管理系統
int[][] courses={{0,0,0,6,0},
{0,0,5,6,9},
{0,3,5,7,9},
{0,3,5,7,9},
{1,4,0,8,10},
{1,4,0,8,10},
{1,0,0,8,10},
{2,0,0,0,0},
{2,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package ex0929;
public class Class {
public static void main(String[] args) {int d;
int [][] a = {{0,1,0,0,0},
{0,1,0,0,2},
{0,3,0,4,2},
{0,3,0,4,2},
{5,9,0,6,7},
{5,9,0,6,7},
{5,9,10,6,7},
{8,0,10,0,0},
{8,0,10,0,0}};
for (int b=1;b<=5;b++){
System.out.print(b+"\t");}
for (int c=0;c<=10;c++){
System.out.println("");
for (int e=0;e<=4;e++){
d=a[c][e];
switch(d){
case 0 :
System.out.print("空堂\t");break;
case 1:System.out.print("英文\t");break;
case 2:System.out.print("企業電子化\t");break;
case 3:System.out.print("公民社會概論\t");break;
case 4:System.out.print("導師\t");break;
case 5:System.out.print("資料結構\t");break;
case 6:System.out.print("統計學 \t");break;
case 7:System.out.print("資料庫管理\t");break;
case 8:System.out.print("人類活動與地球環境變化\t");break;
case 9:System.out.print("經濟學\t");break;
case 10:System.out.print("管理學\t");break; }
}
}
}
}
B10133029 彭義竣 提到...
// 0=無, 1=資料結構, 2=生活中的化學, 3=資料庫
int[][] courses = {
{0,0,0,0,0,0},
{0,0,0,0,0,0},
{0,0,0,0,0,0},
{0,0,0,0,0,0},
{1,2,3,0,0,0},
{1,2,3,0,0,0},
{1,0,3,0,0,0},
{0,0,0,0,0,0},
{0,0,0,0,0,0}
};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 7 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
B10133029 彭義竣 提到...
// 0=無, 1=資料結構, 2=生活中的化學, 3=資料庫
int[][] courses = {
{0,0,0,0,0,0},
{0,0,0,0,0,0},
{0,0,0,0,0,0},
{0,0,0,0,0,0},
{1,2,3,0,0,0},
{1,2,3,0,0,0},
{1,0,3,0,0,0},
{0,0,0,0,0,0},
{0,0,0,0,0,0}
};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 7 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
package go;
public class BB {
public static void main(String[] args) {
// 0:空堂,1:資料結構,2:人類活動與地球環境變遷,3:公民社會概論,4:體育,5:數位影像藝術,6:密碼學,7:軍事傳播學,8:英文,9:導師,10:統計學,11:企業電子化,12:資料庫管理
int[][] AA={{0,0,0,8,0},
{0,0,6,8,11},
{0,3,6,9,11},
{0,3,6,9,11},
{1,4,0,10,12},
{1,4,0,10,12},
{1,5,7,10,12},
{2,5,7,0,0},
{2,0,0,0,0}};
for (int i = 0; i < AA.length; i += 1) {
for (int j = 0; j < AA[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(AA[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package go;
public class sf {
public static void main(String[] args) {
// 0:空堂,1:物件導向,2:資料結構,3:企業概論,4:資訊安全,5:資料庫管理,6:統計學,7:電腦裝修,8:網路程式設計
int[][] df={{0,0,0,0,0},
{1,3,4,0,8},
{1,3,4,0,8},
{1,3,4,0,8},
{2,0,5,6,0},
{2,0,5,6,0},
{2,0,5,6,0},
{0,0,0,7,0},
{0,0,0,7,0}};
for (int i = 0; i < df.length; i += 1) {
for (int j = 0; j < df[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(df[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package go;
public class lang {
public static void main(String[] args) {
// 0:空堂,1:資料結構,2:人類活動與地球環境變遷,3:公民社會概論,4:數位影像藝術,5:體育,6:密碼學,7:英文,8:導師,9:統計學,10:企業電子化,11:資料庫管理
int[][] AA={{0,0,0,7,0},
{0,0,6,7,10},
{0,3,6,8,10},
{0,3,6,8,10},
{1,4,0,9,11},
{1,4,0,9,11},
{1,5,0,9,11},
{2,5,0,0,0},
{2,0,0,0,0}};
for (int i = 0; i < AA.length; i += 1) {
for (int j = 0; j < AA[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(AA[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package go;
public class ace {
public static void main(String[] args) {
// 0:空堂,1:資料結構,2:人類活動與地球環境變遷,3:公民社會概論,4:數位影像藝術,5:體育,6:密碼學,7:英文,8:導師,9:統計學,10:企業電子化,11:資料庫管理
int[][] AA={{0,0,0,7,0},
{0,0,6,7,10},
{0,3,6,8,10},
{0,3,6,8,10},
{1,4,0,9,11},
{1,4,0,9,11},
{1,5,0,9,11},
{2,5,0,0,0},
{2,0,0,0,0}};
for (int i = 0; i < AA.length; i += 1) {
for (int j = 0; j < AA[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(AA[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package ab;
public class abc {
public static void main(String[] args) {
// 0:空堂,1:英文,2:公民社會概論,3:密碼學,4:導師,5:企業電子化,6:資料結構,7:人類活動與地球環境變化,8:體育,9:統計學,10:資料庫管理系統
int[][] courses={{0,0,0,1,0},
{0,0,3,1,5},
{0,2,3,4,5},
{0,2,3,4,5},
{6,8,0,9,10},
{6,8,0,9,10},
{6,0,0,9,10},
{7,0,0,0,0},
{7,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package ab;
public class ex1 {
public static void main(String[] args) {
// 0:空堂,1:網際網路程式設計;,2:資料結構,3:通識,4:策略管理,5:密碼學,6:程式設計,7:導師,8:進階網頁設計
int[][] courses={{0,0,0,0,0},
{1,0,5,0,8},
{1,3,5,7,8},
{1,3,5,7,8},
{2,4,6,0,0},
{2,4,6,0,0},
{2,4,6,0,0},
{0,0,0,0,0},
{0,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package eX1;
public class live {
public static void main(String[] args) {
// 0:空堂,1:體育,2:資料結構,3:人類與地球環境變遷,4:公民與社會概論,5:數位影像藝術,6:英文,7:導師,8:統計學,9:企業電子化,10:資料庫管理系統
int[][] courses={
{0,0,0,6,9},
{0,0,0,6,9},
{1,4,0,7,9},
{1,4,0,7,10},
{2,0,0,8,10},
{2,0,0,8,10},
{2,5,0,8,0},
{3,5,0,0,0},
{3,0,0,0,0}
};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 7 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package go;
public class ace {
public static void main(String[] args) {
// 0:空堂,1:資料結構,2:人類活動與地球環境變遷,3:公民社會概論,4:數位影像藝術,5:體育,6:密碼學,7:英文,8:導師,9:統計學,10:企業電子化,11:資料庫管理
int[][] AA={{0,0,0,7,0},
{0,0,6,7,10},
{0,3,6,8,10},
{0,3,6,8,10},
{1,4,0,9,11},
{1,4,0,9,11},
{1,5,0,9,11},
{2,5,0,0,0},
{2,0,0,0,0}};
for (int i = 0; i < AA.length; i += 1) {
for (int j = 0; j < AA[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(AA[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package ab;
public class ex3 {
public static void main(String[] args) {
// 0:空堂,1:英文,2:社會概論,3:密碼學,4:導師,5:國文,6:資料結構,7:美學,8:體育,9:統計學,10:資料庫管理系統
int[][] courses={{0,0,0,1,0},
{0,0,3,1,5},
{0,2,3,4,5},
{0,2,3,4,5},
{6,8,0,9,10},
{6,8,0,9,10},
{6,0,0,9,10},
{7,0,0,0,0},
{7,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package go;
public class FBI {
public static void main(String[] args) {
// 0:空堂,1:資料結構,2:人類活動與地球環境變遷,3:公民社會概論,4:體育,5:密碼學,6:英文,7:導師,8:統計學,9:企業電子化,10:資料庫管理系統
int[][] courses={{0,0,0,6,0},
{0,0,5,6,9},
{0,3,5,7,9},
{0,3,5,7,9},
{1,4,0,8,10},
{1,4,0,8,10},
{1,0,0,8,10},
{2,0,0,0,0},
{2,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
package ab;
public class ex1 {
public static void main(String[] args) {
// 0:空堂,1:英文,2:公民社會概論,3:密碼學,4:導師,5:企業電子化,6:資料結構,7:人類活動與地球環境變化,8:體育,9:統計學,10:資料庫管理系統
int[][] courses={
{0,1,0,0,0},
{0,1,3,0,5},
{0,2,3,4,5},
{0,2,3,4,5},
{6,8,0,9,10},
{6,8,0,9,10},
{6,0,0,9,10},
{7,0,0,0,0},
{7,0,0,0,0}};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 6 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
}
}
// 0=無, 1=資料結構, 2=人類活動與地球環境變遷, 3=公民社會概論, 4=英文, 5=導師, 6=統計學, 7=企業電子化, 8=資料庫管理系統
int[][] courses = {
{0,0,0,4,0,0},
{0,0,0,4,7,0},
{0,3,0,5,7,0},
{0,3,0,5,7,0},
{1,0,0,6,8,0},
{1,0,0,6,8,0},
{1,0,0,6,8,0},
{2,0,0,0,0,0},
{2,0,0,0,0,0}
};
for (int i = 0; i < courses.length; i += 1) {
for (int j = 0; j < courses[i].length + 1; j += 1) {
if ((j + 1) % 7 != 0) {
System.out.print(courses[i][j]);
}
else {
System.out.println();
}
}
}
張貼留言