From 9f82e4e35bb1cc6317f091744bb435037d3b76f9 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Thu, 2 Apr 2026 22:18:07 +0900 Subject: [PATCH] baekjoon 20260402 --- code_study/Baekjoon/c/1509.c | 46 ++++++++++++++++++++++++++++++ code_study/Baekjoon/python/4435.py | 1 + 2 files changed, 47 insertions(+) create mode 100644 code_study/Baekjoon/c/1509.c create mode 100644 code_study/Baekjoon/python/4435.py 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