請輸出下列樣式:
輸入:n=5
12345
1234
123
12
1
輸入: n=6
123456
12345
1234
123
12
1
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 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...
30 則留言:
public class EX1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
show(6);
show(5);
show(4);
show(3);
show(2);
show(1);
}
}
import java.util.Scanner;
public class ex01 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0; i--){
show(i);
}
}
}
import java.util.Scanner;
public class ex01 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0; i--){
show(i);
}
}
}
import java.util.Scanner;
public class ex1 {
static void show (int n){
String X= "";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main (String[] args){
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i =n1; i>=0;i--){
show(i);
}
}
}
import java.util.Scanner;
import java.util.*;
public class ex1 {
static void show(int n){
String X="";
for (int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=6; i>=0; i--){
show(i);
}
}
}
import java.util.Scanner;
public class ex1 {
private static Scanner input;
static void show(int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int j;
input =new Scanner(System.in);
System.out.println("請輸入數字");
j=input.nextInt();
for(int p=j;p>=0;p--)
show(p);
}
}
import java.util.Scanner;
public class javashit {
static void shit(int n){
String x="";
for(int i=1;i<=n;i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n;
Scanner input=new Scanner(System.in);
System.out.print("n=");
n=input.nextInt();
for(int i=n;i>=1; i--){
shit(i);
}
}
}
import java.util.Scanner;
public class ex1 {
private static Scanner input;
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int j;
input = new Scanner(System.in);
System.out.println("輸入文字");
j=input.nextInt();
for(int p=j;p>=0;p--){
show(p);
}
}
}
import java.util.*;
public class ex1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int x;
Scanner input=new Scanner(System.in);
System.out.print("i:");
x=input.nextInt();
for(int i=x; i>=0; i--){
show(i);
}}}
import java.util.Scanner;
public class ex1 {
private static Scanner input;
static void show(int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int j;
input = new Scanner(System.in);
System.out.println("輸入文字");
j=input.nextInt();
for(int p=j;p>0;p--){
show(p);
}
}
}
import java.util.Scanner;
public class ex02 {
private static Scanner input;
static void show(int n){
String x="";
for(int i=1;i<=n;i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args){
int j;
input = new Scanner(System.in);
System.out.println("輸入數字");
j=input.nextInt();
for(int p=j;p>=0;p--){
show(p);
}
}
}
import java.util.Scanner;
public class ex1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0; i--){
show(i);
}
}
}
import java.util.Scanner;
public class A10433043 {
static void show (int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0;i--){
show(i);
}
}
}
import java.util.Scanner;
public class A10433043 {
static void show (int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0;i--){
show(i);
}
}
}
import java.util.Scanner;
public class A10433043 {
static void show (int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0;i--){
show(i);
}
}
}
import java.util.Scanner;
public class ap1002 {
static void show(int n) {
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main (String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0 ; i--)
show(i);
}
}
import java.util.Scanner;
public class ex1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>0; i--){
show(i);
}
}
}
import java.util.Scanner;
public class ex1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0; i--){
show(i);
}
}
}
import java.util.Scanner;
public class baga {
static void FA(double n){
String X="";
for(int i=1;i<=n;i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
double a;
Scanner FA=new Scanner(System.in);
System.out.print("n=");
a= FA.nextDouble();
for(double i=a;i>=0;i--){
FA(i);
}
}
}
public class ex911hello {
static void show (int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=")
n1=input.nextInt();
for(int i=n1; i>=0; i--) {
show(i);
}
public class ex911hello {
static void show (int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=")
n1=input.nextInt();
for(int i=n1; i>=0; i--) {
show(i);
}
public class ex911hello {
static void show (int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=")
n1=input.nextInt();
for(int i=n1; i>=0; i--) {
show(i);
}
import java.util.Scanner;
public class EX1 {
static void aa(int n){
String x =" ";
for(int i =1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n;
Scanner z =new Scanner(System.in);
System.out.print("輸入:");
n=z.nextInt();
for(int i=n;i>=1;i--)
{aa(i);
}
}
import java.util.*;
public class exc99 {
static void show(int n){
String X="";
for(int i=1;i<=n;i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int a;
Scanner input=new Scanner(System.in);
System.out.print("數字排列輸入");
a=input.nextInt();
for(int i=a;i>=0;i--){
show(i); }
}
}
import java.util.*;
public class ex1 {
static void show(int n){
String X="";
for(int i=1;i<=n;i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int c;
Scanner input=new Scanner(System.in);
System.out.print("數字排列輸入");
c=input.nextInt();
for(int i=c;i>=0;i--){
show(i); }
}
}
import java.util.Scanner;
public class EX1 {
static void show(int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n;
Scanner input=new Scanner(System.in);
System.out.print("輸入=");
n=input.nextInt();
for(int i=n;i>=1; i--){
show(i);
}
}
}
import java.util.Scanner;
public class EX1 {
static void show(int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n;
Scanner input=new Scanner(System.in);
System.out.print("輸入=");
n=input.nextInt();
for(int i=n;i>=1; i--){
show(i);
}
}
}
try proxy http://www.avoidr.com/
import java.util.Scanner;
public class ex1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>0; i--){
show(i);
}
}
}
import java.util.Scanner;
public class EX1 {
static void show(int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n;
Scanner input=new Scanner(System.in);
System.out.print("輸入=");
n=input.nextInt();
for(int i=n;i>=1; i--){
show(i);
}
}
}
張貼留言