Jump to content
em

[Easy] C++ trick

Recommended Posts

Posted


#include <iostream>
using namespace std;
int main()
{
//TODO
cout<<1[a]*2[b]-3[c];
return 0;
}

Completa?i codul de mai sus astfel încât programul s? afi?eze 31337.

Explica?i în câteva cuvinte de ce merge ce a?i f?cut voi.

Trimite?i solu?iile prin PM. S? zicem c? o s? câ?tige cel cu cea mai scurt? surs? (in bytes).

Nu exist? premii.

Cine a rezolvat pana acum?

- cifratorul (+ 32 bytes)

- Nytro (+ 34 bytes)

- razer_krait (+ 41 bytes)

- curtuy (+ 52 bytes)

Posted

Câ?tig?torul este cifratorul. (+32bytes)


#include <iostream>
using namespace std;
int main()
{
int c[]={0,31337,1,0},*a=c,*b=c;
cout<<1[a]*2[b]-3[c];
return 0;
}

Explica?ie: In C++ a = *(a+B) = *(b+a) = b[a];

O solutie de +31 bytes ar fi : int c[]={0,3482,9,1},*a=c,*b=c;

Felicit?ri tuturor participan?ilor.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...