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動態規...
56 則留言:
import java.util.Scanner;
public class test {
public static float abc(float m, float w ){
float bmi ;
bmi= (float)m/(w*w)*10000;
return bmi;
}
public static void main(String[] args) {
int w, m;
System.out.println("請輸入身高");
Scanner a = new Scanner(System.in);
w = a.nextInt();
System.out.println("請輸入體重");
Scanner b = new Scanner(System.in);
m = b.nextInt();
System.out.println(abc(m,w));
}
}
import java.util.Scanner;
public class ex01 {
public static float BMI(float h,float w){
float bmi=w/(h*h)*10000;
return bmi ;
}
public static void main(String[] args) {
Scanner kb=new Scanner(System.in);
float h,w;
System.out.print("Hight=");
h=kb.nextFloat();
System.out.print("weight=");
w=kb.nextFloat();
System.out.println(BMI(h,w));
}
}
import java.util.Scanner;
public class eg0507 {
public static double aaa(double m,double w){
double bmi;
bmi=w/m/m;
return bmi;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.print("請輸入身高:");
double m=input.nextDouble();
System.out.print("請輸入體重:");
double w=input.nextDouble();
System.out.print(aaa(m,w));
}
}
import java.util.Scanner;
public class Test_01 {
public static float BMI(float h, float w) {
float bmi = w / h / h * 10000;
return bmi;
}
public static void main(String[] args) {
Scanner kb = new Scanner(System.in);
float h, w;
System.out.print("Hight:");
h = kb.nextFloat();
System.out.print("Wight:");
w = kb.nextFloat();
System.out.print(BMI(h, w));
}
}
import java.util.Scanner;
public class egg0507 {
public static double ans(double m,double w) {
double bmi;
bmi=w/m/m;
return bmi;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.print("m");
double m=input.nextDouble();
System.out.print("w");
double w=input.nextDouble();
System.out.print(ans(m,w));
}
}
import java.util.Scanner;
public class sss {
static double printop(double m,double w){
double BMI;
BMI=w/m/m;
return BMI;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m=input.nextDouble();
System.out.print("體重");
w=input.nextDouble();
System.out.println(printop(m,w));
}
}
import java.util.Scanner;
public class sss {
static double printop(double m,double w){
double BMI;
BMI=w/m/m;
return BMI;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m=input.nextDouble();
System.out.print("體重");
w=input.nextDouble();
System.out.println(printop(m,w));
}
}
import java.util.Scanner;
public class pso2 {
static double printpso2(double m,double w){
double BMI;
BMI=w/m/m;
return BMI;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m=input.nextDouble();
System.out.print("體重");
w=input.nextDouble();
System.out.println(printpso2(m,w));
}
}
import java.util.*;
public class Java {
public static float bim(float m,float w) {
return w/m/m;
}
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
float m=sc.nextFloat();
float w=sc.nextFloat();
System.out.println(bim(m,w));
}
}
import java.util.*;
public class Java {
public static float bim(float m,float w) {
return w/m/m;
}
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
float m=sc.nextFloat();
float w=sc.nextFloat();
System.out.println(bim(m,w));
}
}
import java.util.*;
public class Java {
public static float bim(float m,float w) {
return w/m/m;
}
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
float m=sc.nextFloat();
float w=sc.nextFloat();
System.out.println(bim(m,w));
}
}
import java.util.*;
public class westr {
static double test11(double m,double w)
{
double bmi;
bmi=m/w/w;
return bmi;
}
public static void main(String[] args)
{
Scanner n=new Scanner(System.in);
System.out.print("身高");
double w=n.nextDouble();
System.out.print("體重");
double m=n.nextDouble();
System.out.print(test11(m,w));
}
}
import java.util.*;
public class westr {
static double test11(double m,double w)
{
double bmi;
bmi=m/w/w;
return bmi;
}
public static void main(String[] args)
{
Scanner n=new Scanner(System.in);
System.out.print("身高");
double w=n.nextDouble();
System.out.print("體重");
double m=n.nextDouble();
System.out.print(test11(m,w));
}
}
import java.util.*;
public class westr {
static double test11(double m,double w)
{
double bmi;
bmi=m/w/w;
return bmi;
}
public static void main(String[] args)
{
Scanner n=new Scanner(System.in);
System.out.print("身高");
double w=n.nextDouble();
System.out.print("體重");
double m=n.nextDouble();
System.out.print(test11(m,w));
}
}
import java.util.Scanner;
public class apple {
public static double bmi(double w,double m){
return w/(m*m);
}
public static void main(String[]args){
Scanner x = new Scanner(System.in);
double m = x.nextDouble();
double w = x.nextDouble();
double BMI=bmi(w,m);
System.out.print(BMI);
}
}
import java.util.Scanner;
public class MtcTW
{
public static double bmi(double m,double w)
{
return w/m/m;
}
public static void main(String[] args)
{
Scanner x = new Scanner(System.in);
double m = x.nextDouble();
double w = x.nextDouble();
double BMI = bmi(w,m);
System.out.println(BMI);
}
}
import java.util.*;
class FOR{
public static float BMI(float w,float m){
return w/m/m;
}
public static void main(String[]args){
Scanner ww=new Scanner(System.in);
System.out.print("體重");
float w=ww.nextFloat();
System.out.print("身高");
float m=ww.nextFloat();
System.out.print(BMI(w,m));
}
}
import java.util.Scanner;
public class awing {
public static double bmi(double m,double w) {
return w/m/m;
}
public static void main(String[] args){
Scanner x=new Scanner(System.in);
double m = x.nextDouble();
double w = x.nextDouble();
double BMI=bmi(w,m);
System.out.println(BMI);
}
}
import java.util.*;
class fir{
public static float BMI(float w,float m){
return w/m/m;
}
public static void main (String[]arge){
Scanner ww=new Scanner(System.in);
System.out.print("體重");
float w=ww.nextFloat();
System.out.print("身高");
float m=ww.nextFloat();
System.out.print(BMI(w,m));
}
}
package hello509;
import java.util.Scanner;
public class hello123 {
public static double bmi(double m,double w){
return w/m/m;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.println("身高");
m=input.nextDouble();
System.out.println("體重");
w=input.nextDouble();
Double BMI=bmi(m,w);
System.out.println(BMI);
}
}
package hello509;
import java.util.Scanner;
public class hh {
public static double bmi(double m, double w){
return w/m/m;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m=input.nextDouble();
System.out.print("體重");
w=input.nextDouble();
double BMI=bmi(m,w);
System.out.println(BMI);
}
import java.util.Scanner;
public class sam
{
public static double bmi(double m,double w)
{
return w/m/m;
}
public static void main(String[] args)
{
Scanner x = new Scanner(System.in);
double m = x
public class san {
public static double bmi(double m, double w)
{
return w/m/m;
}
public static void main(String[] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
import java.util.Scanner;
public class sam
{
public static double bmi(double m,double w)
{
return w/m/m;
}
public static void main(String[] args)
{
Scanner x = new Scanner(System.in);
double m = x
public class bmi {
public static double bmi(double m, double w)
{
return w/m/m;
}
public static void main(String[] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
public class hello {
public static double bmi(double m, double w)
{
return w/m/m;
}
public static void main(String[] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
public class bmi {
public static double bmi(double m, double w)
{
return w/m/m;
}
public static void main(String[] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
public class hello {
public static double bmi (double m, double w) {
return w/m/m;
}
public static void main(String[] args){
java.util.Scanner sc=new java.util.Scanner (System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
package hello0509;
import java.util.Scanner;
public class aa {
public static double bmi(double m , double w){
return w/m/m;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m = input.nextDouble();
System.out.print("體重");
w = input.nextDouble();
double BMI=bmi(m,w);
System.out.println("BMI="+w/m/m);
}
}
public class ex1 {
public static double bmi(double m,double w){
return w/m/m;
}
public static void main(String [] args){
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
import java.util.*;
public class get {
public static double bmi(double m,double w)
{
return w/m/m;
}
public static void main(String[] args){
Scanner input=new Scanner(System.in);
double m=input.nextDouble();
double w=input.nextDouble();
double BMI=bmi(w,m);
System.out.println(BMI);
}
}
package hello0509;
import java.util.Scanner;
public class aa {
public static double bmi(double m , double w){
return w/m/m;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m = input.nextDouble();
System.out.print("體重");
w = input.nextDouble();
double BMI=bmi(m,w);
System.out.println("BMI="+w/m/m);
}
}
public class hello {
public static double bmi(double m, double w)
{
return 10000*w/m/m;
}
public static void main(String[] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
System.out.print("身高:");
double m=sc.nextDouble();
System.out.print("體重:");
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
import java.util.Scanner;
public class banana {
public static double bmi(double w,double m){
return w/(m*m);
}
public static void main(String[]args){
Scanner x = new Scanner(System.in);
double m = x.nextDouble();
double w = x.nextDouble();
double BMI=bmi(w,m);System.out.print(BMI);
}
}
public class lang {
public static double bmi(double m, double w)
{
return w/m/m;
}
public static void main(String[] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
import java.util.Scanner;
public class candy {
public static double bmi(double w,double m){
return w/(m*m);
}
public static void main(String[]args){
Scanner x = new Scanner(System.in);
double m = x.nextDouble();
double w = x.nextDouble();
double BMI=bmi(w,m);System.out.print(BMI);
}
}
import java.util.*;
public class westr {
static double test11(double m,double w)
{
double bmi;
bmi=m/w/w;
return bmi;
}
public static void main(String[] args)
{
Scanner n=new Scanner(System.in);
System.out.print("身高");
double w=n.nextDouble();
System.out.print("體重");
double m=n.nextDouble();
System.out.print(test11(m,w));
}
}
public class abcd {
public static double bmi(double m, double w)
{
return w/m/m;
}
public static void main(String[] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
public class ccc {
public static double bmi(double m, double w)
{
return w/m/m;
}
public static void main(String[] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
public class bmm {
public static double bmi(double m, double w)
{
return w/m/m;
}
public static void main(String[] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
public class ass {
public static double bmi(double m, double w)
{
return w/m/m;
}
public static void main(String[] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
import java.util.Scanner;
public class app {
public static double bmi(double m,double w){
return w/m/m;
}
public static void main(String[] args) {
Scanner x =new Scanner(System.in);
double m=x.nextDouble();
double w=x.nextDouble();
double bmi = bmi(w,m);
System.out.println(bmi);
}
}
package hello0509;
import java.util.Scanner;
public class aa {
public static double bmi(double m , double w){
return w/m/m;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m = input.nextDouble();
System.out.print("體重");
w = input.nextDouble();
double BMI=bmi(m,w);
System.out.println("BMI="+w/m/m);
}
}
package hello0509;
import java.util.Scanner;
public class aa {
public static double bmi(double m , double w){
return w/m/m;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m = input.nextDouble();
System.out.print("體重");
w = input.nextDouble();
double BMI=bmi(m,w);
System.out.println("BMI="+w/m/m);
}
}
public class NYPD {
public static double bmi(double m,double w)
{
return w/m/m;
}
public static void main(String [] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
import java.util.Scanner;
public class aa {
static double printop(double m,double w){
double BMI;
BMI=w/m/m;
return BMI;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m=input.nextDouble();
System.out.print("體重");
w=input.nextDouble();
System.out.println(printop(m,w));
}
}
import java.util.Scanner;
public class eg0507 {
public static double aaa(double m,double w){
double bmi;
bmi=w/m/m;
return bmi;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.print("請輸入身高:");
double m=input.nextDouble();
System.out.print("請輸入體重:");
double w=input.nextDouble();
System.out.print(aaa(m,w));
}
}
public class ass {
public static double bmi(double m, double w)
{
return w/m/m;
}
public static void main(String[] args)
{
java.util.Scanner sc = new java.util.Scanner(System.in);
double m=sc.nextDouble();
double w=sc.nextDouble();
double Bmi=bmi(m,w);
System.out.println(Bmi);
}
}
import java.util.*;
class fir{
public static float BMI(float w,float m){
return w/m/m;
}
public static void main (String[]arge){
Scanner ww=new Scanner(System.in);
System.out.print("體重");
float w=ww.nextFloat();
System.out.print("身高");
float m=ww.nextFloat();
System.out.print(BMI(w,m));
}
}
import java.util.Scanner;
public class sss {
static double printop(double m,double w){
double BMI;
BMI=w/m/m;
return BMI;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m=input.nextDouble();
System.out.print("體重");
w=input.nextDouble();
System.out.println(printop(m,w));
}
}
import java.util.Scanner;
public class hello {
public static double aaa(double m,double w){
double bmi;
bmi=w/m/m;
return bmi;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.print("請輸入身高:");
double m=input.nextDouble();
System.out.print("請輸入體重:");
double w=input.nextDouble();
System.out.print(aaa(m,w));
}
}
import java.util.Scanner;
public class aa {
static double printop(double m,double w){
double BMI;
BMI=w/m/m;
return BMI;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m=input.nextDouble();
System.out.print("體重");
w=input.nextDouble();
System.out.println(printop(m,w));
}
}
import java.util.Scanner;
public class sss {
static double printop(double m,double w){
double BMI;
BMI=w/m/m;
return BMI;
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double m,w;
System.out.print("身高");
m=input.nextDouble();
System.out.print("體重");
w=input.nextDouble();
System.out.println(printop(m,w));
}
}
import java.util.Scanner;
public class test {
public static float abc(float m, float w ){
float bmi ;
bmi= (float)m/(w*w)*10000;
return bmi;
}
public static void main(String[] args) {
int w, m;
System.out.println("請輸入身高");
Scanner a = new Scanner(System.in);
w = a.nextInt();
System.out.println("請輸入體重");
Scanner b = new Scanner(System.in);
m = b.nextInt();
System.out.println(abc(m,w));
}
}
import java.util.Scanner;
public class test {
public static float abc(float m, float w ){
float bmi ;
bmi= (float)m/(w*w)*10000;
return bmi;
}
public static void main(String[] args) {
int w, m;
System.out.println("請輸入身高");
Scanner a = new Scanner(System.in);
w = a.nextInt();
System.out.println("請輸入體重");
Scanner b = new Scanner(System.in);
m = b.nextInt();
System.out.println(abc(m,w));
}
}
import java.util.Scanner;
public class test {
public static float abc(float m, float w ){
float bmi ;
bmi= (float)m/(w*w)*10000;
return bmi;
}
public static void main(String[] args) {
int w, m;
System.out.println("請輸入身高");
Scanner a = new Scanner(System.in);
w = a.nextInt();
System.out.println("請輸入體重");
Scanner b = new Scanner(System.in);
m = b.nextInt();
System.out.println(abc(m,w));
}
}
張貼留言