mirror of
https://bitbucket.org/Mattrixwv/projecteulercs.git
synced 2025-12-06 17:23:57 -05:00
Made all programs similar
This commit is contained in:
@@ -165,8 +165,8 @@ namespace ProjectEulerCS.Problems{
|
|||||||
//Constructor
|
//Constructor
|
||||||
public Problem13() : base("Work out the first ten digits of the sum of the one-hundred 50-digit numbers"){
|
public Problem13() : base("Work out the first ten digits of the sum of the one-hundred 50-digit numbers"){
|
||||||
nums = new List<BigInteger>(100);
|
nums = new List<BigInteger>(100);
|
||||||
ReserveVectors();
|
|
||||||
sum = 0;
|
sum = 0;
|
||||||
|
ReserveVectors();
|
||||||
}
|
}
|
||||||
//Reserve the size of the vector to speed up insertion
|
//Reserve the size of the vector to speed up insertion
|
||||||
private void ReserveVectors(){
|
private void ReserveVectors(){
|
||||||
|
|||||||
Reference in New Issue
Block a user