Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Moeweb647252 authored Feb 9, 2024
2 parents 37b8fe2 + 9469812 commit d2a6190
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 19 deletions.
3 changes: 1 addition & 2 deletions .github/rank.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from scoring import file_score, best_file_score
from scoring import file_score, best_file_score, filter_ext
from pathlib import Path

if __name__ == '__main__':

score_list = []

filter_ext = [".md", ".txt", ".png", ".jpg", ".gif", ".bmp"]
for player in Path('.').glob('*'):
if player.is_file():
continue
Expand Down
5 changes: 4 additions & 1 deletion .github/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import pathlib


filter_ext = [".md", ".txt", ".png", ".jpg", ".gif", ".bmp"]


def file_score(path: pathlib.Path) -> typing.Optional[typing.Tuple[int, int, int]]:
"""Return the score of a file based on its length and number of used characters."""

Expand Down Expand Up @@ -68,5 +71,5 @@ def best_file_score(path_list: typing.List[pathlib.Path]) -> typing.Optional[typ
print('Usage: python scoring.py <files>')
exit()

paths = [pathlib.Path(arg) for arg in sys.argv[1:]]
paths = [pathlib.Path(arg) for arg in sys.argv[1:] if not pathlib.Path(arg).suffix in filter_ext]
best_file_score(paths)
1 change: 1 addition & 0 deletions Cherry-mma/main.wl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Range[9^9]
Binary file added Cherry-mma/截图.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Ns2Kracy/main.go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package main;func main(){for{_=make([]byte,1<<32)}}
package main;func main(){for{_=new([1e9]int)}}
Binary file added Ns2Kracy/oom3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 16 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,22 @@
<!-- begin of RANKING -->
| Rank | Player | File | Length | Category | Score |
| ---- | ------ | ---- | ------ | -------- | ----- |
| 1 | [wanz](wanz) | [oom.py](wanz/oom.py) | 9 | 3 | 27 |
| 2 | [dragove](dragove) | [oom.py](dragove/oom.py) | 9 | 5 | 45 |
| 3 | [HisAtri](HisAtri) | [new.py](HisAtri/new.py) | 10 | 5 | 50 |
| 4 | [lovemilk](lovemilk) | [oom.rb](lovemilk/oom.rb) | 14 | 10 | 140 |
| 5 | [Zhilu](Zhilu) | [simple-oom.js](Zhilu/simple-oom.js) | 17 | 13 | 221 |
| 6 | [Rear_Sagittar](Rear_Sagittar) | [fuckwin.ps1](Rear_Sagittar/fuckwin.ps1) | 16 | 14 | 224 |
| 7 | [yusuixian](yusuixian) | [main.cpp](yusuixian/main.cpp) | 26 | 17 | 442 |
| 8 | [mr_cino](mr_cino) | [oom.wo](mr_cino/oom.wo) | 26 | 17 | 442 |
| 9 | [Cherry](Cherry) | [main.c](Cherry/main.c) | 27 | 18 | 486 |
| 10 | [RaySky_Rt](RaySky_Rt) | [oom.cpp](RaySky_Rt/oom.cpp) | 30 | 19 | 570 |
| 11 | [wzyisyyds](wzyisyyds) | [rust.rs](wzyisyyds/rust.rs) | 48 | 27 | 1296 |
| 12 | [Ns2Kracy](Ns2Kracy) | [main.go](Ns2Kracy/main.go) | 52 | 32 | 1664 |
| 1 | [Moeweb647252](Moeweb647252) | [oom.bat](Moeweb647252/oom.bat) | 6 | 4 | 24 |
| 2 | [wanz](wanz) | [oom.py](wanz/oom.py) | 9 | 3 | 27 |
| 3 | [dragove](dragove) | [oom.py](dragove/oom.py) | 9 | 5 | 45 |
| 4 | [HisAtri](HisAtri) | [new.py](HisAtri/new.py) | 10 | 5 | 50 |
| 5 | [Cherry-mma](Cherry-mma) | [main.wl](Cherry-mma/main.wl) | 10 | 9 | 90 |
| 6 | [lovemilk](lovemilk) | [oom.rb](lovemilk/oom.rb) | 14 | 9 | 126 |
| 7 | [Rear_Sagittar](Rear_Sagittar) | [fuckwin.ps1](Rear_Sagittar/fuckwin.ps1) | 13 | 12 | 156 |
| 8 | [Zhilu](Zhilu) | [simple-oom.js](Zhilu/simple-oom.js) | 17 | 13 | 221 |
| 9 | [yusuixian](yusuixian) | [main.cpp](yusuixian/main.cpp) | 26 | 17 | 442 |
| 10 | [mr_cino](mr_cino) | [oom.wo](mr_cino/oom.wo) | 26 | 17 | 442 |
| 11 | [Cherry](Cherry) | [main.c](Cherry/main.c) | 27 | 18 | 486 |
| 12 | [bakashigure](bakashigure) | [oom.lua](bakashigure/oom.lua) | 26 | 19 | 494 |
| 13 | [RaySky_Rt](RaySky_Rt) | [oom.cpp](RaySky_Rt/oom.cpp) | 26 | 19 | 494 |
| 14 | [lianhong](lianhong) | [main.go](lianhong/main.go) | 43 | 24 | 1032 |
| 15 | [Ns2Kracy](Ns2Kracy) | [main.go](Ns2Kracy/main.go) | 46 | 27 | 1242 |
| 16 | [wzyisyyds](wzyisyyds) | [rust.rs](wzyisyyds/rust.rs) | 48 | 27 | 1296 |
<!-- end of RANKING -->

## 奖品
Expand Down
2 changes: 1 addition & 1 deletion RaySky_Rt/oom.cpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main(){for(;;)new int[9];}
main(){for(;;)new int[9];}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Rear_Sagittar/fuckwin.ps1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
while(1){&calc}
for(){&calc}
1 change: 1 addition & 0 deletions bakashigure/oom.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
while 1 do _G[#_G+1]={}end
1 change: 1 addition & 0 deletions lianhong/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package main;func main(){_=make([]int,9e9)}
Binary file added lianhong/任务管理.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lovemilk/lovemilk-oom.rb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lovemilk/oom.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(0..9**9).to_a
(9..9**9).to_a

0 comments on commit d2a6190

Please sign in to comment.