diff --git a/code_study/Baekjoon/c/1509.c b/code_study/Baekjoon/c/1509.c new file mode 100644 index 0000000..0fc5afb --- /dev/null +++ b/code_study/Baekjoon/c/1509.c @@ -0,0 +1,46 @@ +#include +#include +#include + +bool isPalindrome[2500][2500]; +char str[2501]; +int dp[2500]; + +int main() { + scanf("%s", str); + int length = strlen(str); + + isPalindrome[0][0] = true; + for(int i=1; i (sau := sum(a*b for a,b in zip([1,2,2,2,3,5,10], map(int, input().split())))) else 'Evil eradicates all trace of Good' if gan < sau else 'No victor on this battle field'}" for i in range(int(input()))])) \ No newline at end of file