From 169fcca00ea93a439fc00285da2bd7fb20cb8361 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Mon, 26 Jan 2026 20:50:13 +0900 Subject: [PATCH] baekjoon 20260126 --- code_study/Baekjoon/c/11945.c | 17 +++++++ code_study/Baekjoon/swift/1005_1.swift | 66 ++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 code_study/Baekjoon/c/11945.c create mode 100644 code_study/Baekjoon/swift/1005_1.swift diff --git a/code_study/Baekjoon/c/11945.c b/code_study/Baekjoon/c/11945.c new file mode 100644 index 0000000..06080c1 --- /dev/null +++ b/code_study/Baekjoon/c/11945.c @@ -0,0 +1,17 @@ +#include +#include + +int main() { + int N, M; + scanf("%d %d", &N, &M); + + char* line = (char*)malloc(sizeof(char)*(M+1)); + while(N--) { + scanf("%s",line); + for(int i=M-1; i>=0; i--) printf("%c",line[i]); + printf("\n"); + } + + free(line); + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/swift/1005_1.swift b/code_study/Baekjoon/swift/1005_1.swift new file mode 100644 index 0000000..1a9747e --- /dev/null +++ b/code_study/Baekjoon/swift/1005_1.swift @@ -0,0 +1,66 @@ +func main() { + var ans: [Int] = [] + + guard let T = Int(readLine() ?? "") else { return } + + for _ in 0..