Download Jar. Libraryless. Click here for Pure Java version (16802L/100K).
1 | !7 |
2 | |
3 | p-exp { |
4 | bool print; |
5 | new IntBuffer occ; |
6 | |
7 | int i = 0, count = 0; |
8 | int n = 1000000*1000*2; |
9 | repeat n { |
10 | count = occ.getOpt(i); |
11 | if (print) printNoNewLine(count); |
12 | intBufferPut(occ, count, occ.getOpt(count)+1); |
13 | if (count == 0) { |
14 | i = 0; |
15 | if (print) print(); |
16 | } else { |
17 | i++; |
18 | if (print) printNoNewLine(" "); |
19 | } |
20 | } |
21 | |
22 | print(n2(n) + ": " + count + "/" + n2(l(occ))); |
23 | } |
download show line numbers debug dex old transpilations
Travelled to 1 computer(s): mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1038772 |
Snippet name: | Inventory Sequence |
Eternal ID of this version: | #1038772/1 |
Text MD5: | 4165c790b8a937fb6e98f44353747075 |
Transpilation MD5: | 2b797ffb72f067bba796bd374273b49a |
Author: | stefan |
Category: | |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2025-01-09 17:40:56 |
Source code size: | 438 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 24 / 63 |
Referenced in: | [show references] |