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
e96ed1de
Commit
e96ed1de
authored
Oct 24, 2019
by
十年打工还是工,梭哈一夜往皇宫
🤡
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lijing-2' into 'master'
翻车和逆袭可能存在多个结果,目前只展示了一个 See merge request
!11
parents
e77d1da3
fec82b8f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Screen.cs
Lottery/Lottery/Screen.cs
+5
-5
No files found.
Lottery/Lottery/Screen.cs
View file @
e96ed1de
...
...
@@ -32,13 +32,13 @@ namespace Lottery
}
else
if
(
i
>
1
)
{
int
topCount
=
lotteries
.
Where
(
p
=>
p
.
Level
<=
3
).
Sum
(
p
=>
p
.
Count
);
Console
.
WriteLine
();
var
n
=
temp
.
Take
(
lotteries
.
Where
(
p
=>
p
.
Level
<=
3
).
Sum
(
p
=>
p
.
Count
)).
Max
(
p
=>
old
.
LastIndexOf
(
p
));
Console
.
WriteLine
(
$"逆袭大神:
{
old
[
n
].
Name
}
"
);
n
=
old
.
Take
(
lotteries
.
Where
(
p
=>
p
.
Level
<=
3
).
Sum
(
p
=>
p
.
Count
))
.
Max
(
p
=>
temp
.
LastIndexOf
(
p
));
var
upList
=
temp
.
Take
(
topCount
).
Where
(
p
=>!
old
.
Take
(
topCount
).
Contains
(
p
)).
OrderByDescending
(
p
=>
p
.
NewGrade
);
Console
.
WriteLine
(
$"逆袭大神:
{
string
.
Join
(
","
,
upList
.
Select
(
p
=>
p
.
Name
))}
"
);
var
downList
=
old
.
Take
(
topCount
).
Where
(
p
=>!
temp
.
Take
(
topCount
).
Contains
(
p
)).
OrderByDescending
(
p
=>
p
.
NewGrade
);
Console
.
WriteLine
();
Console
.
WriteLine
(
$"翻车小弟:
{
persons
[
n
].
Name
}
"
);
Console
.
WriteLine
(
$"翻车小弟:
{
string
.
Join
(
","
,
downList
.
Select
(
p
=>
p
.
Name
))
}
"
);
old
.
Clear
();
old
.
AddRange
(
temp
);
}
...
...
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