herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
-
XOR prefixsum CPP python解Leetcode 1829 Maximum XOR for Each Query 其實這裡考慮的是元素個數為2^maximumBit的交換群,運算子為XOR。 [Python code請進]
-
你會用C的算子sizeof?
-
Python C++使用字串find迴圈速解Leetcode 2490 Circular Sentence C++ & Python都有字串的find,用法都類似 split=s.find(' ', split+1)能找到s從index=split+1開...
-
先說明一下這是後知後覺的解答,所謂後知就是股票價格已知存在陣列(清單),當然就要用迴圈練習,雙迴圈暴力解需時O(n**2),當然不用,採python單一迴圈解答「最佳股票的買賣時機#LeetCode 121 Best Time to Buy and Sell Stock」,解...
-
Colab上安裝中文字型修改股市爬蟲pyplot顯圖 使用python套件: numpy, requests. pyplot, matplotlib.font_manager, matplotlib.mpl
-
2 pointer Python C++解Leetcode 3163 String Compression III [codes on Leetcode] https://leetcode.com/problems/string-compression-iii/solution...
15 則留言:
class s{
String name;
int score;
int credit;
s(String x, int y, int z){
name=x; score=y; credit=z;
}
void print(){
System.out.printf(" %-10s %5d %5d\n", name, score, credit);
}
}
public class ex2 {
public static void main(String[] args) {
s[] x=new s[20];
x[0]=new s("文選", 80 ,2);
x[1]=new s("商用英文會話", 98, 2);
x[2]=new s("身體的哲學思維", 85 ,2);
x[3]=new s("動態網頁設計", 85 ,3);
x[4]=new s("資訊管理", 50 ,3);
x[5]=new s("資料庫管理系統", 65 ,3);
x[6]=new s("程式設計", 72 ,3);
x[7]=new s("資訊網路", 88 ,3);
x[8]=new s("網路行銷", 80 ,3);
for(int i=0; i<9; i++) x[i].print();
}
}
class S{
String name;
int score;
int c;
S(String x,int y,int z){
name=x;score=y;c=z;
}void print(){
System.out.printf("%-10s %5d %5d\n",name,score,c);
}
}
public class ffdfbfhbfhdfgsdrgthyjdtyjtrfhtryhjyjh {
public static void main(String[] args) {
// TODO Auto-generated method stub
S[] x=new S[20];
x[0]=new S("java",80,3);
x[1]=new S("security",70,2);
for(int i=0;i<2;i++)x[i].print();
}
}
package aaa;
class S{
String name;
int score;
int c;
S(String x, int y,int z){
name=x;
score=y;
c=z;
}
void print(){
System.out.printf(" %-10s %5d %5d\n",name,score,c);
}
}
public class holle {
public static void main(String[] args) {
S[] X=new S[15];
X[0]=new S("文選",68,2);
X[1]=new S("商用英文會話",84,2);
X[2]=new S("身體的哲學思維[一般]",85,2);
X[3]=new S("動態網頁設計",80,3);
X[4]=new S("資料庫管理系統",65,3);
X[5]=new S("資料庫管理",43,3);
X[6]=new S("程式設計",72,3);
X[7]=new S("資料管理專體報告寫作",65,1);
X[8]=new S("資訊網路",68,3);
X[9]=new S("網路行銷",79,3);
X[10]=new S("導師",75,0);
X[11]=new S("體育",70,0);
for(int i=0; i<12;i++)X[i].print();
}
}
class Subject{
String name;
int score;
int credit;
public Subject(String name, int score, int credit){
this.name = name;
this.score = score;
this.credit = credit;
}
void print(){
System.out.println
(name+":"+"\t分數:"+score+"\t學分:"+credit);
}
}
public class ex13 {
public static void main(String[] args) {
Subject[] X=new Subject[7];
X[0]=new Subject("文選",68,2);
X[1]=new Subject("英文",80,2);
X[2]=new Subject("藝術",40,2);
X[3]=new Subject("資管",51,3);
X[4]=new Subject("資庫",65,3);
X[5]=new Subject("程設",72,3);
X[6]=new Subject("資網",76,3);
for(int v=0;v<7;v++)
X[v].print();
}
}
class S{ String name; int score; int c; S(String x,int y,int z){ name=x;score=y;c=z; }void print(){ System.out.printf("%-10s %5d %5d\n",name,score,c);}}public class ssdg { public static void main(String[] args) { S[] x=new S[20]; x[0]=new S("java",80,3); x[1]=new S("security",70,2); for(int i=0;i<2;i++)x[i].print(); }}
class S{
String name;
int score;
int credit;
S(String x, int y, int z){
name=x; score=y; credit=z;
}
void print(){
System.out.println(name+","+score+","+credit);
}
}
public class ex {
public static void main(String[] args) {
S[] X=new S[11];
X[0]=new S("java",72,3);
X[1]=new S("文選",84,2);
X[2]=new S("英文",100,2);
X[3]=new S("日文",35,2);
X[4]=new S("動態網頁",80,3);
X[5]=new S("IM",53,3);
X[6]=new S("SQL",80,3);
X[7]=new S("資訊網路",80,3);
X[8]=new S("網路行銷",80,3);
X[9]=new S("專題",80,1);
X[10]=new S("體育",100,2);
for(int i=0; i<11; i++) X[i].print();
}
}
class S{ String name; int score; int c; S(String x,int y,int z){ name=x;score=y;c=z; }void print(){ System.out.printf("%-10s %5d %5d\n",name,score,c);}}public class dllls { public static void main(String[] args) { S[] x=new S[20]; x[0]=new S("java",80,3); x[1]=new S("security",70,2); for(int i=0;i<2;i++)x[i].print(); }}
class S{
String name;
int c;
int score;
S(String x,int y,int z){
name=x; score=y; c=z;
}
void print() {
System.out.println(name+","+score+","+c);
}
}
class ex1 {
public static void main(String[] args) {
S[] X=new S[7];
X[0]=new S("java",72,3);
X[1]=new S("文選", 72,2);
X[2]=new S("商用英文會話",80,2);
X[3]=new S("數位影像藝術",60,2);
X[4]=new S("資訊管理",45,3);
X[5]=new S("資料庫管理系統",65,3);
X[6]=new S("資訊網路",76,3);
for(int i=0;i<7;i++) X[i].print();
}
}
class S{
String name;
int score;
int credit;
public S(String name,int score,int credit){
this.name=name;
this.score=score;
this.credit=credit;
}
void print(){
System.out.println
(name+":"+"\t分數:"+score+"\t學分:"+credit);
}
}
public class ex13 {
public static void main(String[] args) {
S[] X=new S[10];
X[0]=new S("文選",86,2);
X[1]=new S("英文",85,2);
X[2]=new S("網頁",95,3);
X[3]=new S("資管",70,3);
X[4]=new S("資庫",90,3);
X[5]=new S("程設",98,3);
X[6]=new S("資網",96,3);
X[7]=new S("行銷",98,3);
for(int i=0;i<8;i++){
X[i].print();
}
}
}
class Subject{
String name;
int score;
int credit;
public Subject(String name,int score,int credit){
this.name=name;
this.score=score;
this.credit=credit;
}
void print(){
System.out.println(name+":"+"\t分數:"+score+"\t學分:"+credit);
}
}
public class ex1 {
public static void main(String[] args) {
Subject[] X=new Subject[9];
X[0]=new Subject("程式",99,3);
X[1]=new Subject("文選",86,2);
X[2]=new Subject("商用英文會話",98,2);
X[3]=new Subject("音樂森林",87,2);
X[4]=new Subject("動態網頁設計",95,3);
X[5]=new Subject("資訊管理",54,3);
X[6]=new Subject("資料庫管理系統",90,3);
X[7]=new Subject("資訊網路",89,3);
X[8]=new Subject("網路行銷",98,3);
for(int i=0;i<9;i++){
X[i].print();
}
}
}
class Subject{
String name;
int score;
int credit;
public Subject(String name, int score, int credit){
this.name=name;
this.score=score;
this.credit=credit;
}
void print(){
System.out.println(name+":"+"\t分數:"+score+"\t學分:"+credit);
}
}
public class ex {
public static void main(String[] args) {
Subject[] X=new Subject[9];
X[0]=new Subject("文選",84,2);
X[1]=new Subject("英文",95,2);
X[2]=new Subject("日文",36,2);
X[3]=new Subject("網頁",95,3);
X[4]=new Subject("資管",52,3);
X[5]=new Subject("資庫",90,3);
X[6]=new Subject("程設",99,3);
X[7]=new Subject("資網",99,3);
X[8]=new Subject("行銷",98,3);
for(int i=0;i<9;i++)
X[i].print();
}
}
A10533004易廷軒 提到...
class s{
String name;
int score;
int credit;
s(String x, int y, int z){
name=x; score=y; credit=z;
}
void print(){
System.out.printf(" %-10s %5d %5d\n", name, score, credit);
}
}
public class ex2 {
public static void main(String[] args) {
s[] x=new s[20];
x[0]=new s("文選", 80 ,2);
x[1]=new s("商用英文會話", 98, 2);
x[2]=new s("身體的哲學思維", 85 ,2);
x[3]=new s("動態網頁設計", 85 ,3);
x[4]=new s("資訊管理", 50 ,3);
x[5]=new s("資料庫管理系統", 65 ,3);
x[6]=new s("程式設計", 72 ,3);
x[7]=new s("資訊網路", 88 ,3);
x[8]=new s("網路行銷", 80 ,3);
for(int i=0; i<9; i++) x[i].print();
}
}
class Subject{
String name;
int score;
int credit;
public Subject(String name, int score, int credit){
this.name = name;
this.score = score;
this.credit = credit;
}
void print(){
System.out.println
(name+":"+"\t分數:"+score+"\t學分:"+credit);
}
}
public class ex13 {
public static void main(String[] args) {
Subject[] X=new Subject[7];
X[0]=new Subject("文選",68,2);
X[1]=new Subject("英文",80,2);
X[2]=new Subject("藝術",40,2);
X[3]=new Subject("資管",51,3);
X[4]=new Subject("資庫",65,3);
X[5]=new Subject("程設",72,3);
X[6]=new Subject("資網",76,3);
for(int v=0;v<7;v++)
X[v].print();
}
}
class Subject{
String name;
int score;
int credit;
public Subject(String name, int score, int credit){
this.name = name;
this.score = score;
this.credit = credit;
}
void print(){
System.out.println
(name+":"+"\t分數:"+score+"\t學分:"+credit);
}
}
public class ex13 {
public static void main(String[] args) {
Subject[] X=new Subject[7];
X[0]=new Subject("文選",68,2);
X[1]=new Subject("英文",80,2);
X[2]=new Subject("藝術",40,2);
X[3]=new Subject("資管",51,3);
X[4]=new Subject("資庫",65,3);
X[5]=new Subject("程設",72,3);
X[6]=new Subject("資網",76,3);
for(int v=0;v<7;v++)
X[v].print();
}
}
class Subject{
String name;
int score;
int credit;
public Subject(String name, int score, int credit){
this.name = name;
this.score = score;
this.credit = credit;
}
void print(){
System.out.println
(name+":"+"\t分數:"+score+"\t學分:"+credit);
}
}
public class ex13 {
public static void main(String[] args) {
Subject[] X=new Subject[7];
X[0]=new Subject("文選",68,2);
X[1]=new Subject("英文",80,2);
X[2]=new Subject("藝術",40,2);
X[3]=new Subject("資管",51,3);
X[4]=new Subject("資庫",65,3);
X[5]=new Subject("程設",72,3);
X[6]=new Subject("資網",76,3);
for(int v=0;v<7;v++)
X[v].print();
}
}
張貼留言