dynamic

master
robin 3 years ago
parent 36a3edcd1b
commit 667e179af7

@ -0,0 +1,13 @@
package org.alis.amu.explame;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class AlisAmuExampleApplicationTests {
@Test
void contextLoads() {
}
}

@ -0,0 +1,13 @@
package org.alis.amu;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class AlisAmuServerApplicationTests {
@Test
void contextLoads() {
}
}

@ -0,0 +1,39 @@
package org.alis.smallcc.algorithm.leetcode;
/**
*
* n
*
* @author alis
*/
public class LeetCode17 {
public static void main(String[] args) {
Integer count = advanced(1000);
System.out.println(count);
}
private static Integer advanced(Integer n) {
if (n == 1) {
return 1;
}
if (n == 2) {
return 2;
}
int a = 1;
int b = 2;
int temp = 0;
for (int i = 3; i <= n; i++) {
temp = a + b;
a=b;
b=temp;
}
return temp;
}
}

@ -33,11 +33,11 @@
<spring.cloud.alibaba.version>2021.1</spring.cloud.alibaba.version> <spring.cloud.alibaba.version>2021.1</spring.cloud.alibaba.version>
<lombok.version>1.18.16</lombok.version> <lombok.version>1.18.16</lombok.version>
<hutool.version>5.7.15</hutool.version> <hutool.version>5.7.15</hutool.version>
<mysql.connector.version>8.0.27</mysql.connector.version> <mysql.connector.version>8.0.28</mysql.connector.version>
<mybatis.plus.version>3.4.1</mybatis.plus.version> <mybatis.plus.version>3.4.1</mybatis.plus.version>
<druid.version>1.2.4</druid.version> <druid.version>1.2.4</druid.version>
<xxl.job.version>2.2.0</xxl.job.version> <xxl.job.version>2.2.0</xxl.job.version>
<jackson.version>2.13.0</jackson.version> <jackson.version>2.13.2.2</jackson.version>
<knife4j.version>3.0.2</knife4j.version> <knife4j.version>3.0.2</knife4j.version>
<telesign.version>2.3.0</telesign.version> <telesign.version>2.3.0</telesign.version>
<jwt.version>8.20.1</jwt.version> <jwt.version>8.20.1</jwt.version>
@ -65,9 +65,9 @@
<swagger-annotation.version>1.5.22</swagger-annotation.version> <swagger-annotation.version>1.5.22</swagger-annotation.version>
<mt4-sdk.version>1.0-SNAPSHOT</mt4-sdk.version> <mt4-sdk.version>1.0-SNAPSHOT</mt4-sdk.version>
<mapstruct.version>1.4.2.Final</mapstruct.version> <mapstruct.version>1.4.2.Final</mapstruct.version>
<fastjson.version>1.2.41</fastjson.version> <fastjson.version>1.2.80</fastjson.version>
<apm-toolkit.version>8.8.0</apm-toolkit.version> <apm-toolkit.version>8.8.0</apm-toolkit.version>
<jsoup.version>1.13.1</jsoup.version> <jsoup.version>1.14.3</jsoup.version>
<openfeign.version>3.1.0</openfeign.version> <openfeign.version>3.1.0</openfeign.version>
<guava.version>31.0.1-jre</guava.version> <guava.version>31.0.1-jre</guava.version>
<statemachine.version>3.0.1</statemachine.version> <statemachine.version>3.0.1</statemachine.version>

Loading…
Cancel
Save