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
161af1c0
Commit
161af1c0
authored
Oct 24, 2019
by
十年打工还是工,梭哈一夜往皇宫
🤡
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-typo' into 'master'
修正手误 See merge request
!2
parents
cb67e02d
3e64fa3c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Program.cs
Lottery/Lottery/Program.cs
+2
-2
No files found.
Lottery/Lottery/Program.cs
View file @
161af1c0
...
@@ -26,7 +26,7 @@ namespace Lottery
...
@@ -26,7 +26,7 @@ namespace Lottery
IReadOnlyList
<
Lottery
>
lotteries
=
Lottery
.
GetLotteries
();
IReadOnlyList
<
Lottery
>
lotteries
=
Lottery
.
GetLotteries
();
if
(
persons
.
Count
==
0
)
if
(
persons
.
Count
==
0
)
{
{
Console
.
WriteLine
(
Environment
.
NewLine
+
"未找到抽奖人员,请在程序生成目录下编写p.
txt
文件,每个人名占一行"
);
Console
.
WriteLine
(
Environment
.
NewLine
+
"未找到抽奖人员,请在程序生成目录下编写p.
csv
文件,每个人名占一行"
);
Console
.
ReadLine
();
Console
.
ReadLine
();
return
;
return
;
}
}
...
@@ -47,7 +47,7 @@ namespace Lottery
...
@@ -47,7 +47,7 @@ namespace Lottery
{
{
//计分方式1:根据返回的随机数加金币
//计分方式1:根据返回的随机数加金币
//计分方式2:看命
//计分方式2:看命
//计分方式3:随
即
加上一个人的金币,看能否逆袭
//计分方式3:随
机
加上一个人的金币,看能否逆袭
//其他方式:可在下方对NewGrade属性进行操作
//其他方式:可在下方对NewGrade属性进行操作
persons
[
j
].
NewGrade
+=
(
randoms
[
j
]
+
persons
[
j
].
NewGrade
+=
(
randoms
[
j
]
+
(
Math
.
Abs
(
persons
[
j
].
GetHashCode
()
<<
1
)
%
persons
.
Count
)
+
(
Math
.
Abs
(
persons
[
j
].
GetHashCode
()
<<
1
)
%
persons
.
Count
)
+
...
...
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