herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
你會用C的算子sizeof?
-
先說明一下這是後知後覺的解答,所謂後知就是股票價格已知存在陣列(清單),當然就要用迴圈練習,雙迴圈暴力解需時O(n**2),當然不用,採python單一迴圈解答「最佳股票的買賣時機#LeetCode 121 Best Time to Buy and Sell Stock」,解...
-
貪婪計數Python C++解Leetcode 2491 Divide Players Into Teams of Equal Skill 貪婪演算+counting sort加上2-pointer這樣就完成打敗100趴的快速C++解答[Python code請進] -----
-
C++ DP動態規劃解Leetcode 937 Maximum Number of Points with Cost 有些標示medium要比標示hard的問題還要難,Leetcode 1937. Maximum Number of Points with Cost,DP動態規...
-
Python CPP heap priority queue速解L eetcode 2530. Maximal Score After Applying K Operations heap/priority queue是重要的資料結構,無論是C++的std::priority_q...
-
python C++ Greedy速解找零問題Leetcode 860 Lemonade Change b=20時貪婪演算法保持檢查順序,先找十塊,不要改變檢查順序,否則不起作用 [python解請進] -----
50 則留言:
package go;
public class CS {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package ab;
public class ex1 {
public static void main(String[] args) {
int a[]={71,73,73,75,75,77,86,86,90,93,95};
int b[]={2,3,3,2,0,0,2,2,3,3,0};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績:2/3");
}
else{
System.out.println("學期成績:all pass");
}
}
}
package GO;
public class 123 {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
public class ex1 {
public static void main(String[] args) {
int a[]={84,92,89,77,97,99,91,92,70,79,89,73};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package go;
public class CS {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package B1;
public class h1 {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package score;
public class sc {
public static void main(String[] args) {
int a[]={97,92,93,90,95,81,86,73,74,68,77};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package score;
public class sc {
public static void main(String[] args) {
int a[]={97,92,93,90,95,81,86,73,74,68,74};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package score;
public class sc {
public static void main(String[] args) {
int a[]={97,92,93,90,95,81,86,73,74,68,74};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package score;
public class sc {
public static void main(String[] args) {
int a[]={97,92,93,90,95,81,86,73,74,68,74};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package score;
public class sc {
public static void main(String[] args) {
int a[]={97,92,93,90,95,81,86,73,74,68,74};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package score;
public class sc {
public static void main(String[] args) {
int a[]={97,92,93,90,95,81,86,73,74,68,74};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package score;
public class sc {
public static void main(String[] args) {
int a[]={97,92,93,90,95,81,86,73,74,68,74};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package no;
public class scc {
public static void main(String[] args) {
int a[]={82,89,79,77,93,92,78,89,72,70,73,81};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package score ;
public class ak1 {
public static void main(String[] args) {
int a[]={84,84,80,73,93,91,89,96,74,66,91,84};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: 歐趴");
}
}
}
package ex0923;
public class Hw0923 {
int a[]={62,24,78,75,84,68,64,79,75,81};
int b[]={4,3,1,2,2,2,2,2,0,0};
int T=18;
int F=0;{
for ( int i=0; i=2*T);{
System.out.println("成績:2/3");}
else{
System.out.println("成績:All Pass");
}
}
}
package ket;
public class CS {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package san;
public class CS {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package wie;
public class CS {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package go;
public class CS {
public static void main(String[] args) {
int a[]={65,90,83,91,87,88,60,66,76,70,66};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
public class abc {
public static void main(String[] args) {
int a[]={68,73,76,78,81,88,88,92,95,95,99};
int b[]={3,0,2,0,2,2,3,2,0,3,3};
int total=20;
int fail=0;
for (int i=0; i<a.length; i++){
if (a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total){
System.out.println("學期成績:2/3");
}
else{
System.out.println("學期成績:All pass");
}
}
}
}
public class abc {
public static void main(String[] args) {
int a[]={90,78,87,60,86,92,62,82,81,61,80};
int b[]={0,2,2,2,0,3,3,3,3,2,0};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
public class test5
{
public static void main(String[] args)
{
int a[]={84,96,83,77,85,97,99,91,73,63,89,85};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int x=0;
for(int i=0;i<a.length;i++)
{
if(a[i]<60)
{
x=x+b[i];
}
}
if(x*3>=total*2)
System.out.print("此學期學分有2/3沒過");
else
{
System.out.print("此學期為all pass");
}
}
}
public class aa {
public static void main(String[] args) {
int a[]={91,87,84,89,90,91,82,73,75,91,74};
int b[]={0,2,2,2,0,3,3,3,3,2};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
public class apple{
public static void main(String[] args) {
int a[]={86,82,80,66,70,97,89,74,82,60,80,88};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail+=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3不及格");
}
else{
System.out.println("學期成績: all pass");
}
}
}
public static void main(String[] args) {
int a[]={90,72,60,47,83,98,78,97,96,67,75,68};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int jg=20;
int top=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
top+=top+b[i];
if(3*top>=2*jg) {
System.out.println("學期成績: 2/3不及格");
}
else{
System.out.println("學期成績: pass");
}
}
}
public class karmaa
{
public static void main(String[] args)
{
int a[]={90,90,83,60,95,93,75,74,73,61,84,79};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail+=fail+b[i];
if(3*fail>=2*total)
{
System.out.println("學期成績: 2/3不及格");
}
else{
System.out.println("學期成績: all pass");
}
}
}
public class sam{
public static void main(String[] args) {
int a[]={90,84,82,97,84,100,70,80,66,99,85,82};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail+=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3不及格");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package 1;
public class awing {
public static void main(String[] args) {
int a[]={67,77,76,60,60,90,60,85,75,60,84,77};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package score;
public class sc {
public static void main(String[] args) {
int a[]={97,92,93,90,95,81,86,73,74,68,74};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
public class b10033185{
public static void main(String[] args) {
int a[]={90,84,82,97,84,100,70,80,66,99,85,82};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail+=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3不及格");
}
else{
System.out.println("學期成績: 未不及格;);
}
}
}
public class sam{
public static void main(String[] args) {
int a[]={90,84,82,97,84,100,70,80,66,99,85,82};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3不及格");
}
else{
System.out.println("學期成績: 未不及格");
}
}
}
public class yoyo {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績及學期分數達2/3");
}
else{
System.out.println("學期成績及學期分數未達2/3");
}
}
}
package ab;
public class ex1 {
public static void main(String[] args) {
int a[]={71,73,73,75,75,77,86,86,90,93,95};
int b[]={2,3,3,2,0,0,2,2,3,3,0};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績不及格學分數達2/3");
}
else{
System.out.println("學期成績不及格學分數未達2/3");
}
}
}
public class aa{
public static void main(String[] args) {
int a[]={91,87,84,89,90,91,82,73,75,91,74};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3不及格");
}
else{
System.out.println("學期成績: 及格");
}
}
}
public class test5
{
public static void main(String[] args)
{
int a[]={84,96,83,77,85,97,99,91,73,63,89,85};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int x=0;
for(int i=0;i=total*2)
System.out.print("此學期學分有2/3沒過");
else
{
System.out.print("學期成績及學期分數未達2/3");
}
}
}
public class ex1 {
public static void main(String[] args) {
int a[]={84,92,89,77,97,99,91,92,70,79,89,73};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績不及格學分數達2/3");
}
else{
System.out.println("學期成績不及格學分數未達2/3");
}
}
}
public class CS {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail+=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績:不及格學分數達2/3");
}
else{
System.out.println("學期成績:不及格學分數未達2/3");
}
}
}
public class xx
{
public static void main(String[] args)
{
int a[]={80,90,90,60,80,94,70,60,80,60,80,75};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i=2*total)
{
System.out.println("學期成績: 2/3不及格");
}
else{
System.out.println("學期成績:pass");
}
}
}
public class EX1 {
public static void main(String[] args) {
int a[]={98,95,83,92,70,60,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績:不及格學分數達2/3");
}
else{
System.out.println("學期成績:不及格學分數未達2/3");
}
}
}
public class aa{
public static void main(String[] args) {
int a[]={91,87,84,89,90,85,82,73,78,91,74};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3不及格");
}
else{
System.out.println("學期成績: 及格");
}
}
}
package ab;
public class hw {
public static void main(String[] args) {
int a[]={61,98,65,90,90,78,68,92,74,74,88};
int b[]={2,0,3,0,2,0,2,3,3,2,3};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績達2/3");
}
else{
System.out.println("學期成績未達2/3標準");
}
}
}
public class hw1{
public static void main(String[] args) {
int a[]={90,60,80,95,78,63,74,81,93,85,76};
int b[]={2,2,0,2,3,3,2,2,2,3,3};
int total=24;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績及學期分數達2/3");
}
else{
System.out.println("學期成績及學期分數未達2/3");
}
}
}
d9935206 張憶文
public class hw1{
public static void main(String[] args) {
int a[]={90,60,80,95,78,63,74,81,93,85,76};
int b[]={2,2,0,2,3,3,2,2,2,3,3};
int total=24;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績及學期分數達2/3");
}
else{
System.out.println("學期成績及學期分數未達2/3");
}
}
}
package go;
public class CS {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package ket;
public class CS {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package score;
public class sc {
public static void main(String[] args) {
int a[]={97,92,93,90,95,81,86,73,74,68,77};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
public class ex1 {
public static void main(String[] args) {
int a[]={84,92,89,77,97,99,91,92,70,79,89,73};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
package go;
public class CS {
public static void main(String[] args) {
int a[]={95,95,94,92,90,88,87,82,76,74,64};
int b[]={0,2,0,2,3,3,2,0,3,3,2};
int total=20;
int fail=0;
for(int i=0; i=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
public class ex1 {
public static void main(String[] args) {
int a[]={84,92,89,77,97,99,91,92,70,79,89,73};
int b[]={0,2,2,2,0,3,3,3,3,2,0,0};
int total=20;
int fail=0;
for(int i=0; i<a.length; i++)
if(a[i]<60)
fail=fail+b[i];
if(3*fail>=2*total) {
System.out.println("學期成績: 2/3");
}
else{
System.out.println("學期成績: all pass");
}
}
}
張貼留言