-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add files via upload * Calculus A(1) 2020 Fall * 汇编 * update repo structure
- Loading branch information
c7w
committed
Dec 29, 2021
1 parent
2971924
commit 88300b4
Showing
639 changed files
with
75,184 additions
and
75,141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
512 changes: 256 additions & 256 deletions
512
大一上/思想道德修养与法律基础/hw/mooc/复习指南.md → 大一上/思想道德与法治/hw/mooc/复习指南.md
Large diffs are not rendered by default.
Oops, something went wrong.
654 changes: 327 additions & 327 deletions
654
大一上/思想道德修养与法律基础/hw/mooc/学习参考.md → 大一上/思想道德与法治/hw/mooc/学习参考.md
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
在 2020 年,《思想道德修养与法律基础》课程更名为《思想道德与法治》课程,采用新编教材,新编慕课。本文件夹内的内容请有选择性地采用。 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
208 changes: 104 additions & 104 deletions
208
大二小学期/Java台湾小学期/hw/hw6/src/lab6/Lab.java → 大一小学期/Java台湾小学期/hw/hw6/src/lab6/Lab.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,104 @@ | ||
package lab6; | ||
import java.io.*; | ||
|
||
class MyException extends Exception | ||
{ | ||
MyException() {} | ||
MyException(String mess) | ||
{ | ||
super(mess); | ||
} | ||
} | ||
|
||
public class Lab { | ||
/** A buffered reader attached to the keyboard. If you store this value | ||
* in a variable kbd (say), then | ||
* | ||
* kbd.readLine() | ||
* | ||
* will prompt the reader to type a line by putting in the Interactions pane | ||
* a field into which to type and will then yield the string of characters | ||
* the user typed in. | ||
*/ | ||
public static BufferedReader getKeyboard() { | ||
// Create a link to the keyboard | ||
return new BufferedReader(new InputStreamReader(System.in)); | ||
} | ||
|
||
|
||
|
||
/** Prompt the reader to type a line into the interactions pane and | ||
* return the line that the user types. */ | ||
public static String readKeyboardLine() throws IOException { | ||
BufferedReader kyboard= getKeyboard(); | ||
String line= kyboard.readLine(); | ||
return line; | ||
} | ||
|
||
/** Prompt the reader to type an integer (an int) into the interactions pane | ||
* and return the integer that they type. If the user types something that | ||
* is not an int, then issue a message (System.out.println(...) and prompts | ||
* again. | ||
*/ | ||
public static int readKeyboardInt() throws IOException { | ||
BufferedReader kyboard= getKeyboard(); | ||
while (true) | ||
{ | ||
String line = kyboard.readLine(); | ||
try | ||
{ | ||
int ans = Integer.parseInt(line); | ||
return ans; | ||
} | ||
catch(NumberFormatException e) | ||
{ | ||
System.out.println("您的输入不是整数,请重新输入"); | ||
} | ||
} | ||
//return 0; | ||
} | ||
|
||
/** = b**c. | ||
Precondition: c ?0 | ||
*/ | ||
public static double exp(double b, int c) | ||
throws MyException | ||
{ | ||
if (c < 0) | ||
{ | ||
//System.out.println("c<0"); | ||
throw new MyException("c<0"); | ||
} | ||
if (c == 0) | ||
return 1; | ||
// c > 0 | ||
|
||
if (c%2 == 0) | ||
return exp(b*b, c / 2); | ||
// c is odd and > 0 | ||
return b * exp(b, c-1); | ||
} | ||
|
||
/** The value i such that x**i <= .00000001 but x**(i-1) is not. | ||
Throw MyException if x <= 0 or 1 <= x. | ||
*/ | ||
public static int approach(double x) | ||
throws MyException | ||
{ | ||
int i= 1; // stub; you have to complete this function | ||
if (x <= 0) | ||
throw new MyException("x <= 0"); | ||
else if (x >= 1) | ||
throw new MyException("x >= 1"); | ||
|
||
double ans = 1; | ||
for (i = 1;;i++) | ||
{ | ||
ans = ans * x; | ||
if (ans < 0.1) | ||
break; | ||
} | ||
return i; | ||
|
||
} | ||
} | ||
package lab6; | ||
import java.io.*; | ||
|
||
class MyException extends Exception | ||
{ | ||
MyException() {} | ||
MyException(String mess) | ||
{ | ||
super(mess); | ||
} | ||
} | ||
|
||
public class Lab { | ||
/** A buffered reader attached to the keyboard. If you store this value | ||
* in a variable kbd (say), then | ||
* | ||
* kbd.readLine() | ||
* | ||
* will prompt the reader to type a line by putting in the Interactions pane | ||
* a field into which to type and will then yield the string of characters | ||
* the user typed in. | ||
*/ | ||
public static BufferedReader getKeyboard() { | ||
// Create a link to the keyboard | ||
return new BufferedReader(new InputStreamReader(System.in)); | ||
} | ||
|
||
|
||
|
||
/** Prompt the reader to type a line into the interactions pane and | ||
* return the line that the user types. */ | ||
public static String readKeyboardLine() throws IOException { | ||
BufferedReader kyboard= getKeyboard(); | ||
String line= kyboard.readLine(); | ||
return line; | ||
} | ||
|
||
/** Prompt the reader to type an integer (an int) into the interactions pane | ||
* and return the integer that they type. If the user types something that | ||
* is not an int, then issue a message (System.out.println(...) and prompts | ||
* again. | ||
*/ | ||
public static int readKeyboardInt() throws IOException { | ||
BufferedReader kyboard= getKeyboard(); | ||
while (true) | ||
{ | ||
String line = kyboard.readLine(); | ||
try | ||
{ | ||
int ans = Integer.parseInt(line); | ||
return ans; | ||
} | ||
catch(NumberFormatException e) | ||
{ | ||
System.out.println("您的输入不是整数,请重新输入"); | ||
} | ||
} | ||
//return 0; | ||
} | ||
|
||
/** = b**c. | ||
Precondition: c ?0 | ||
*/ | ||
public static double exp(double b, int c) | ||
throws MyException | ||
{ | ||
if (c < 0) | ||
{ | ||
//System.out.println("c<0"); | ||
throw new MyException("c<0"); | ||
} | ||
if (c == 0) | ||
return 1; | ||
// c > 0 | ||
|
||
if (c%2 == 0) | ||
return exp(b*b, c / 2); | ||
// c is odd and > 0 | ||
return b * exp(b, c-1); | ||
} | ||
|
||
/** The value i such that x**i <= .00000001 but x**(i-1) is not. | ||
Throw MyException if x <= 0 or 1 <= x. | ||
*/ | ||
public static int approach(double x) | ||
throws MyException | ||
{ | ||
int i= 1; // stub; you have to complete this function | ||
if (x <= 0) | ||
throw new MyException("x <= 0"); | ||
else if (x >= 1) | ||
throw new MyException("x >= 1"); | ||
|
||
double ans = 1; | ||
for (i = 1;;i++) | ||
{ | ||
ans = ans * x; | ||
if (ans < 0.1) | ||
break; | ||
} | ||
return i; | ||
|
||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
118 changes: 59 additions & 59 deletions
118
大二小学期/Java台湾小学期/hw/hw7/Lab7.java → 大一小学期/Java台湾小学期/hw/hw7/Lab7.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
import java.io.*; | ||
|
||
public class Lab7 { | ||
/** = a buffered reader attached to the keyboard. If you store this value | ||
* in a variable kbd (say), then | ||
* | ||
* kbd.readLine() | ||
* | ||
* will prompt the reader to type a line by putting in the Interactions pane | ||
* a field into which to type and will then yield the string of characters | ||
* the user typed in. | ||
*/ | ||
public static BufferedReader getKeyboard() { | ||
// Create a link to the keyboard | ||
return new BufferedReader(new InputStreamReader(System.in)); | ||
} | ||
|
||
|
||
|
||
/** Prompt the reader to type a line into the interactions pane and | ||
* return the line that the user types. */ | ||
public static String readKeyboardLine() throws IOException { | ||
BufferedReader kyboard= getKeyboard(); | ||
String line= kyboard.readLine(); | ||
return line; | ||
} | ||
|
||
/** Prompt the reader to type an integer (an int) into the interactions pane | ||
* and return the integer that they type. If the user types something that | ||
* is not an int, then issue a message (System.out.println(...) and prompts | ||
* again. | ||
*/ | ||
public static int readKeyboardInt() throws IOException { | ||
BufferedReader kyboard= getKeyboard(); | ||
return 0; | ||
} | ||
|
||
/** = b**c. | ||
Precondition: c ?0 | ||
*/ | ||
public static double exp(double b, int c) { | ||
if (c == 0) | ||
return 1; | ||
// c > 0 | ||
if (c%2 == 0) | ||
return exp(b*b, c / 2); | ||
// c is odd and > 0 | ||
return b * exp(b, c-1); | ||
} | ||
|
||
/** = the value i such that x**i <= .00000001 but x**(i-1) is not. | ||
Throw MyException if x <= 0 or 1 <= x. | ||
*/ | ||
public static int approach(double x) { | ||
int i= 1; // stub; you have to complete this function | ||
return i; | ||
|
||
} | ||
} | ||
import java.io.*; | ||
|
||
public class Lab7 { | ||
/** = a buffered reader attached to the keyboard. If you store this value | ||
* in a variable kbd (say), then | ||
* | ||
* kbd.readLine() | ||
* | ||
* will prompt the reader to type a line by putting in the Interactions pane | ||
* a field into which to type and will then yield the string of characters | ||
* the user typed in. | ||
*/ | ||
public static BufferedReader getKeyboard() { | ||
// Create a link to the keyboard | ||
return new BufferedReader(new InputStreamReader(System.in)); | ||
} | ||
|
||
|
||
|
||
/** Prompt the reader to type a line into the interactions pane and | ||
* return the line that the user types. */ | ||
public static String readKeyboardLine() throws IOException { | ||
BufferedReader kyboard= getKeyboard(); | ||
String line= kyboard.readLine(); | ||
return line; | ||
} | ||
|
||
/** Prompt the reader to type an integer (an int) into the interactions pane | ||
* and return the integer that they type. If the user types something that | ||
* is not an int, then issue a message (System.out.println(...) and prompts | ||
* again. | ||
*/ | ||
public static int readKeyboardInt() throws IOException { | ||
BufferedReader kyboard= getKeyboard(); | ||
return 0; | ||
} | ||
|
||
/** = b**c. | ||
Precondition: c ?0 | ||
*/ | ||
public static double exp(double b, int c) { | ||
if (c == 0) | ||
return 1; | ||
// c > 0 | ||
if (c%2 == 0) | ||
return exp(b*b, c / 2); | ||
// c is odd and > 0 | ||
return b * exp(b, c-1); | ||
} | ||
|
||
/** = the value i such that x**i <= .00000001 but x**(i-1) is not. | ||
Throw MyException if x <= 0 or 1 <= x. | ||
*/ | ||
public static int approach(double x) { | ||
int i= 1; // stub; you have to complete this function | ||
return i; | ||
|
||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.