diff --git a/zeta_C/completed/24263.c b/zeta_C/completed/24263.c new file mode 100644 index 0000000..80c1957 --- /dev/null +++ b/zeta_C/completed/24263.c @@ -0,0 +1,9 @@ +#include + +int main() { + int n; + scanf("%d", &n); + printf("%d\n%d\n", n, 1); + + return 0; +} \ No newline at end of file diff --git a/zeta_C/completed/24264.c b/zeta_C/completed/24264.c new file mode 100644 index 0000000..3a4707f --- /dev/null +++ b/zeta_C/completed/24264.c @@ -0,0 +1,8 @@ +#include + +int main() { + long long n; + scanf("%lld", &n); + printf("%lld\n%d\n", n * n, 2); + return 0; +} \ No newline at end of file diff --git a/zeta_C/completed/24265.c b/zeta_C/completed/24265.c new file mode 100644 index 0000000..4face4d --- /dev/null +++ b/zeta_C/completed/24265.c @@ -0,0 +1,8 @@ +#include + +int main() { + long long n; + scanf("%lld", &n); + printf("%lld\n%d\n", n * (n - 1L) / 2L, 2); + return 0; +} \ No newline at end of file diff --git a/zeta_C/completed/24266.c b/zeta_C/completed/24266.c new file mode 100644 index 0000000..f190f92 --- /dev/null +++ b/zeta_C/completed/24266.c @@ -0,0 +1,8 @@ +#include + +int main() { + long long n; + scanf("%lld", &n); + printf("%lld\n%d\n", n * n * n, 3); + return 0; +} \ No newline at end of file diff --git a/zeta_C/completed/24267.c b/zeta_C/completed/24267.c new file mode 100644 index 0000000..22b4ea9 --- /dev/null +++ b/zeta_C/completed/24267.c @@ -0,0 +1,8 @@ +#include + +int main() { + long long n; + scanf("%lld", &n); + printf("%lld\n%d\n", n * (n - 1L) * (n - 2L) / 6L, 3); + return 0; +} \ No newline at end of file diff --git a/zeta_C/completed/24313.c b/zeta_C/completed/24313.c new file mode 100644 index 0000000..ffb8048 --- /dev/null +++ b/zeta_C/completed/24313.c @@ -0,0 +1,18 @@ +#include + +int main() { + int a1, a0, c, n0; + scanf("%d %d\n%d\n%d", &a1, &a0, &c, &n0); + + int cond = 1; + + for (int i = n0; i <= 100; i++) { + if (a1 * i + a0 > c * i) { + cond = 0; + break; + } + } + + printf("%d\n", cond); + return 0; +} \ No newline at end of file