diff --git a/code_study/Baekjoon/c/24262.c b/code_study/Baekjoon/c/24262.c new file mode 100644 index 0000000..9ff3582 --- /dev/null +++ b/code_study/Baekjoon/c/24262.c @@ -0,0 +1,8 @@ +#include + +int main() { + int n; + scanf("%d",&n); + printf("1\n0\n"); + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/24263.c b/code_study/Baekjoon/c/24263.c new file mode 100644 index 0000000..96ba9c1 --- /dev/null +++ b/code_study/Baekjoon/c/24263.c @@ -0,0 +1,8 @@ +#include + +int main() { + int n; + scanf("%d",&n); + printf("%d\n1\n",n); + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/24264.c b/code_study/Baekjoon/c/24264.c new file mode 100644 index 0000000..289daca --- /dev/null +++ b/code_study/Baekjoon/c/24264.c @@ -0,0 +1,8 @@ +#include + +int main() { + long long n; + scanf("%lld",&n); + printf("%lld\n2\n",n*n); + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/24265.c b/code_study/Baekjoon/c/24265.c new file mode 100644 index 0000000..07eb54e --- /dev/null +++ b/code_study/Baekjoon/c/24265.c @@ -0,0 +1,8 @@ +#include + +int main() { + long long n; + scanf("%lld",&n); + printf("%lld\n2\n",n*(n-1)/2); + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/24266.c b/code_study/Baekjoon/c/24266.c new file mode 100644 index 0000000..352cdd9 --- /dev/null +++ b/code_study/Baekjoon/c/24266.c @@ -0,0 +1,8 @@ +#include + +int main() { + long long n; + scanf("%lld",&n); + printf("%lld\n3\n",n*n*n); + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/24267.c b/code_study/Baekjoon/c/24267.c new file mode 100644 index 0000000..09b6236 --- /dev/null +++ b/code_study/Baekjoon/c/24267.c @@ -0,0 +1,8 @@ +#include + +int main() { + long long n; + scanf("%lld",&n); + printf("%lld\n3\n",n*(n-1)*(n-2)/6); + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/24313.c b/code_study/Baekjoon/c/24313.c new file mode 100644 index 0000000..0a00d7e --- /dev/null +++ b/code_study/Baekjoon/c/24313.c @@ -0,0 +1,14 @@ +#include + +int main() { + int a1, a0, c, n0; + scanf("%d %d %d %d",&a1, &a0, &c, &n0); + if(c>=a1 && a1*n0+a0<=c*n0) { + printf("1\n"); + } + else { + printf("0\n"); + } + + return 0; +} \ No newline at end of file