mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 08:50:15 +08:00
更新0070.爬楼梯完全背包版本的 Java 语言版本
This commit is contained in:
@ -143,9 +143,9 @@ int main() {
|
||||
import java.util.Scanner;
|
||||
class climbStairs{
|
||||
public static void main(String [] args){
|
||||
Scanner sc=new Scanner(System.in);
|
||||
Scanner sc = new Scanner(System.in);
|
||||
int m, n;
|
||||
while(sc.hasNextInt()){
|
||||
while (sc.hasNextInt()) {
|
||||
// 从键盘输入参数,中间用空格隔开
|
||||
n = sc.nextInt();
|
||||
m = sc.nextInt();
|
||||
|
Reference in New Issue
Block a user