Cody

Problem 1774. Free passes for everyone!

Solution 1333322

Submitted on 10 Nov 2017 by Rafael Hernandez-Walls
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
if strcmpi(myfunction(),'matlab') if isempty(which('freepass')), fh=fopen('freepass_system.p','wb'); fwrite(fh,uint8(sscanf('7630312E30307630302E3030000A101CBC6EDFB1000000E3000005F30000097C16D96804352FE98DD24AC0CF78D05A46EB3BA144303F54379A8622E060F96AD31BA819796EF843D2B5A203AB63481C90679596B80A480D4D3D75BEF8E968330277757DBC07DEDE4552F29944A7E60F736862BD148B85D7195AB9078A8D23D0649B53B58A0E99919D616972465982E71AEC4AC18B74C952CF140A1386FB25F4A706BE326CDA10068E267864FE898B79C4B8A0C53B342F6007727CB1FBD1408B3D10B92C3CF7EF87A5FD488524F5735EE3D954A4C0DA662887A6953DD56712E278BD32681CA13EE9BD447626191097A15737A82CAB411732609720D35181AC240D6011AC24EA5EE2A00FF557831609A6252A1C61CFDCA40BE6E908B01ABEC50AEEEF38C36D22528C3506FB3777675806BC12E98E0C741DAEE477077DF0FC1338206205146B558BD41AE55D9AB8425426F52DB1115FFD2DAD867A94E377DC041A0868437742180F4B835487C8A9D237DF1F3AF1E5521E88B54C949CB19AE77C96F9BBB663761E15D9A9437C2DB20BA20C545E484691129D8964615FF08CE57D009B0BD6CB7995DEC39574CC39FCD5CEC940F06158AEAC8809306E3DE67F2C0BD6B025D9F6D13657027C9D0EC469EDCC064A0C96A56366C8100882DE2261AABB24E52D20F2230493799721942349EA9671A82A6340FE1FDC3426C42773CF22DEA4A4894FFA493CFDEBE34578213F94F9D304519081F5AB88C7AA36100089EAD88B3349CD9A949A20EE6EDC557DCC4E53FC981A30D4D4BB2F7BC536CBBA13D3AD79BA784DC2609B452154BED25FF25188A8D0AFF72DF0E4A9AA503341B3500E747390E5CC4C1F62306C596DE096A171944244619C7B7DCCB88CAC4D3D6592D6783A5BB6815245D154D422594EA5137383CE944CBEFFA1CE7EDA769289AB48A1ABB68D2E2FFD75AC03D89E5DC3497D127447EAC9BD3B30A48FB2DF7F3155CB9DB801AF4C02DBFD67B07B1C3A109B8F372E14AB8439DC15381BBFD727EAD3D21BAD3A695A96916C63070111041AF243AEA88C736E36A9949425C7E7B2F0CF8F8A317690FE458108FDB88B9E8B94B1B6F85D401D04DAA4B7EBAA5945CBC0832A7C87DA2481B6C9796ECFE855CB03496A58B294A07F846038153D10206DC484F68843B328E883091BD9A32DE92E67A72F5FE499B3A9BF7931FDB02079D85628C6177D66244BD1EA2F217178F830045E0E235CF19B8305C15222FB55BE3D7C0B6DA203CD0CDB7DC419FF11D6CEBA150EC517EFD917F1A75EF33207FB0582F54163C08E5D1BAE47532668AAC257E41C673BB0F177F958C26CC923C78790199B4848A91889CADF247B8EBDC53ECFAF31F855A20674E45B1FFC3BCE4AB747C3CD41FAAEC532D2AD80AE72DFCD71034C473B2D4F1DC916D7D53832181A3834B773877B9790C75460BD7F003D52C31AFB11CFC98069E6DFEF01BC9879304E2DE899D329BB6C27BD2DDDF257DCC8DD2236ED6C944396147BE0DC33835F136555070E7E3FD9938D4771835D71D26038D730C64C9C9547F8DADB033D7927291B48B61EF407950EC5338FA84AA5423FE6F6A8F967312B215B7C60F10CE0D67BF7D1E533588C6BCBAE05BB7A5ED6E4B54AF670055D7D7D39BA9653D3FC74CD3AEE7ACE4CDE7E663B2C8882B7D2F5E5A3B59B0D647E919BC80C2F7F5448E1D4E2408AC0C8C9E5861B000B3456F5524946C8F6272B283DC801BD0F63A70BA3DD601E9711717E01F2E9774EC684B01F030A12A5139D94B99EFBDCE365A23C0CDC197AC640C76F5B51697802DB7A5EC8DAD8D483D8DCED82C6A70EA1752C6246003CC678D6820CD06A8700C335B702ADB0611AD824EF0F57196D53340DD1F3E125AEC6858B273FD6B8F42E23A98EE35783EC494E93798E4ABA04487F7025F91A390DEDEB63E3F565A6588C384E5D8AD11AB821EEAF4CCBEA33151B7EFDB181A0AA6393BE60DC5E6D3FF1DDAF496B0E169AB3052A5079BB8D372AC79186C79EE8E0E8EFFF604FD371072A3082420FA87D52E12D2A18F5672626CD8AC18DF2E84F201A9ABB1D082C865382C842B81964E81C2DA252269A66FAAF398D096B30323DF49CD4FAD57001D36B77C265320F125B56E951A652528BF7250D2100E907F51DF39F50D660C2C4A4D6232945926A0A2A614DD4F52B4FAB1802BDAAFE62C446','%2X'))); fclose(fh); ok=freepass_system(); if ok [nill,name]=system('hostname'); fprintf('A new freepass was issued at server %s\n',name); else fprintf('Sorry, it was not possible to issue a new freepass\n'); end else [nill,name]=system('hostname'); fprintf('An existing freepass was already available at server %s\n',name); end else assert(false); end

A new freepass was issued at server 7c8e074c6a51

Suggested Problems

More from this Author38

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!