Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
Lottery
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
唐柳
Lottery
Commits
1f941650
Commit
1f941650
authored
Oct 23, 2019
by
唐柳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Program.cs
parent
cb67e02d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Program.cs
Lottery/Lottery/Program.cs
+1
-2
No files found.
Lottery/Lottery/Program.cs
View file @
1f941650
using
System
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Linq
;
...
...
@@ -51,7 +50,7 @@ namespace Lottery
//其他方式:可在下方对NewGrade属性进行操作
persons
[
j
].
NewGrade
+=
(
randoms
[
j
]
+
(
Math
.
Abs
(
persons
[
j
].
GetHashCode
()
<<
1
)
%
persons
.
Count
)
+
persons
[
randoms
[
j
]
-
1
].
Old
Grade
);
persons
[
randoms
[
j
]
-
1
].
New
Grade
);
if
(
i
==
3
&&
persons
[
j
].
BaseGrade
>
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment