Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1007393 // Integer Logic Solver

JavaX module [tags: use-pretranspiled]

Download Jar. Libraryless. Click here for Pure Java version (905L/6K/21K).

!7

sS isSmallerOrEq = "hctmgjqkmpmopddh * *";
sS isGreaterOrEq = "emyajonmfdmoogrx * *";

answer {
  if (match(isSmallerOrEq, s, m))
    ret yn(bigint($1).compareTo(bigint($2)) <= 0);
  if (match(isGreaterOrEq, s, m))
    ret yn(bigint($1).compareTo(bigint($2)) >= 0);
}

Author comment

Began life as a copy of #1007392

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007393
Snippet name: Integer Logic Solver
Eternal ID of this version: #1007393/3
Text MD5: 079d5771c3719d84a361f13d851634b5
Transpilation MD5: 073f2d2b2cf831762248148cc11e1e80
Author: stefan
Category: javax / a.i.
Type: JavaX module
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-21 12:13:36
Source code size: 281 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 506 / 1256
Version history: 2 change(s)
Referenced in: #1007392 - Test Integer Logic [dev.]