stosb

wearer of programming socks

  • she/her

mid 20s | bisexual | programmer | european


profile pic: a picrew by Shirazu Yomi
picrew.me/en/image_maker/207297
i use arch btw
xenia the linux fox -> πŸ¦ŠπŸ³οΈβ€βš§οΈ
the moon
πŸŒ™

#include <iostream>
main(){std::string a,b;std::cin>>a;printf(a==b.assign(a.rbegin(),a.rend())?"wins":"loses");}

or, if you can accept a trailing newline in the output:

#include <iostream>
main(){std::string a,b;std::cin>>a;puts(a==b.assign(a.rbegin(),a.rend())?"wins":"loses");}

You must log in to comment.