diff --git a/code_study/Baekjoon/c/2473.c b/code_study/Baekjoon/c/2473.c new file mode 100644 index 0000000..a122ab1 --- /dev/null +++ b/code_study/Baekjoon/c/2473.c @@ -0,0 +1,56 @@ +#include +#include + +typedef long long ll; + +ll val[5000]; +ll res[3]; +ll minSumAbs = 5000000000000; + +int compare(const void* a, const void* b) { + ll num1 = *(const ll*)a; + ll num2 = *(const ll*)b; + + if (num1 > num2) return 1; + if (num1 < num2) return -1; + return 0; +} + +void set_res(ll a, ll b, ll c) { + res[0] = a; + res[1] = b; + res[2] = c; +} + +int main() { + int N; + scanf("%d",&N); + + for(int i=0; i current_abs) { + minSumAbs = current_abs; + set_res(a,b,c); + } + + if(current_sum < 0) l++; + else r--; + } + } + + for(int i=0; i<3; i++) printf("%lld%s",res[i], i==2 ? "\n" : " "); + + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/python/11282.py b/code_study/Baekjoon/python/11282.py new file mode 100644 index 0000000..6a509de --- /dev/null +++ b/code_study/Baekjoon/python/11282.py @@ -0,0 +1 @@ +print(chr(int(input())-1 + 44032)) \ No newline at end of file