Skip to main content
deleted 6 characters in body
Source Link
HatsuPointerKun
  • 2.2k
  • 1
  • 8
  • 13

C++, 331 291 282 270 268 bytes, Version 2 = 178 176 150 149148 bytes

-40 bytes thanks to Bruce Forte
-3839 bytes thanks to Zacharý

#include<string>
#define L length()
using S=std::string;
Sstring;S m(S a,S b){S c;for(int i=0;i<(a.L<b.L?a.L:b.L);++i)c+=(a[i]-32)*(b[i]-32)%95+32;return c;}

C++, 331 291 282 270 268 bytes, Version 2 = 178 176 150 149 bytes

-40 bytes thanks to Bruce Forte
-38 bytes thanks to Zacharý

#include<string>
#define L length()
using S=std::string;
S m(S a,S b){S c;for(int i=0;i<(a.L<b.L?a.L:b.L);++i)c+=(a[i]-32)*(b[i]-32)%95+32;return c;}

C++, 331 291 282 270 268 bytes, Version 2 = 178 176 150 148 bytes

-40 bytes thanks to Bruce Forte
-39 bytes thanks to Zacharý

#include<string>
#define L length()
using S=std::string;S m(S a,S b){S c;for(int i=0;i<(a.L<b.L?a.L:b.L);++i)c+=(a[i]-32)*(b[i]-32)%95+32;return c;}
added 10 characters in body
Source Link
HatsuPointerKun
  • 2.2k
  • 1
  • 8
  • 13

C++, 331 291 282 270 268 bytes, Version 2 = 178 176 150150 149 bytes

-40 bytes thanks to Bruce Forte
-3738 bytes thanks to Zacharý

#include<string>
#define L length()
#define Susing stdS=std::stringstring;
S m(S a,S b){S c;for(int i=0;i<(a.L<b.L?a.L:b.L);++i)c+=(a[i]-32)*(b[i]-32)%95+32;return c;}

C++, 331 291 282 270 268 bytes, Version 2 = 178 176 150 bytes

-40 bytes thanks to Bruce Forte
-37 bytes thanks to Zacharý

#include<string>
#define L length()
#define S std::string
S m(S a,S b){S c;for(int i=0;i<(a.L<b.L?a.L:b.L);++i)c+=(a[i]-32)*(b[i]-32)%95+32;return c;}

C++, 331 291 282 270 268 bytes, Version 2 = 178 176 150 149 bytes

-40 bytes thanks to Bruce Forte
-38 bytes thanks to Zacharý

#include<string>
#define L length()
using S=std::string;
S m(S a,S b){S c;for(int i=0;i<(a.L<b.L?a.L:b.L);++i)c+=(a[i]-32)*(b[i]-32)%95+32;return c;}
deleted 16 characters in body
Source Link
HatsuPointerKun
  • 2.2k
  • 1
  • 8
  • 13

C++, 331 291 282 270 268 bytes, Version 2 = 178 176176 150 bytes

-40 bytes thanks to Bruce Forte
-1137 bytes thanks to Zacharý

#include<string>
#include<algorithm>
#define L length()
#define S std::string
S m(S a,S b){S c;for(int i=0;i<(a.L<b.L?a.L:b.L);++i){c+=(a[i]-32)*(b[i]-32)%95+32;}return%95+32;return c;}

C++, 331 291 282 270 268 bytes, Version 2 = 178 176 bytes

-40 bytes thanks to Bruce Forte
-11 bytes thanks to Zacharý

#include<string>
#include<algorithm>
#define L length()
#define S std::string
S m(S a,S b){S c;for(int i=0;i<(a.L<b.L?a.L:b.L);++i){c+=(a[i]-32)*(b[i]-32)%95+32;}return c;}

C++, 331 291 282 270 268 bytes, Version 2 = 178 176 150 bytes

-40 bytes thanks to Bruce Forte
-37 bytes thanks to Zacharý

#include<string>
#define L length()
#define S std::string
S m(S a,S b){S c;for(int i=0;i<(a.L<b.L?a.L:b.L);++i)c+=(a[i]-32)*(b[i]-32)%95+32;return c;}
added 15 characters in body
Source Link
HatsuPointerKun
  • 2.2k
  • 1
  • 8
  • 13
Loading
added 148 characters in body
Source Link
HatsuPointerKun
  • 2.2k
  • 1
  • 8
  • 13
Loading
added 571 characters in body
Source Link
HatsuPointerKun
  • 2.2k
  • 1
  • 8
  • 13
Loading
added 89 characters in body
Source Link
HatsuPointerKun
  • 2.2k
  • 1
  • 8
  • 13
Loading
added 26 characters in body
Source Link
HatsuPointerKun
  • 2.2k
  • 1
  • 8
  • 13
Loading
Source Link
HatsuPointerKun
  • 2.2k
  • 1
  • 8
  • 13
Loading