Libraryless. Click here for Pure Java version (2064L/15K/45K).
1 | !752 |
2 | |
3 | p { |
4 | Case c = ioioiParse("#1003029"); |
5 | //print("Got " + l(c.examples) + " examples"); |
6 | |
7 | for (S[] e : (L<S[]>) (L) c.examples) |
8 | if (!ioSmartEq(e[1], process(e[0]))) |
9 | fail("nope"); |
10 | commentSnippet(c.id, "yo! solved this."); |
11 | } |
12 | |
13 | static int process(S in) { |
14 | ret count(javaTok(in), ",") + 1; |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003024 |
Snippet name: | Solve "how many items in this list" |
Eternal ID of this version: | #1003024/1 |
Text MD5: | dfaedadd8a6b49c477a13f0edf83a13e |
Transpilation MD5: | 2e5ff1a8cb8875e75437f3af81a56e78 |
Author: | stefan |
Category: | javax / nl |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-04-21 18:55:04 |
Source code size: | 322 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 665 / 705 |
Referenced in: | [show references] |