Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Added. Thank you very much.
Fixed now. Thank you very much.
Thank you for translation.
Thank you very much!!!
In addition, the lambda used in this kata does not use
[=]
and does not capturen
.I'm sorry I didn't understand your question. My guess is that you may have made some mistakes in your understanding of the way the online judging is conducted:
In fact, multiple sets of judging on Codewars are more similar to Leetcode, not passing arguments through I/O, but directly by calling the submitted function (or TypeTrait, etc.), so that Non-local initialization is only performed before judging. You might be able to move the definition of
traw
to the body of thecalc
function?Thank you for translating.
f([4/3]) = f([1.333...]) = f(1).
Yes, all functions are
int -> int
.WTF
#include <cstdio>
Cool