summaryrefslogtreecommitdiffstats
path: root/inf/lige/3/1.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--inf/lige/3/1.c30
-rw-r--r--inf/lige/3/1.cpp46
2 files changed, 76 insertions, 0 deletions
diff --git a/inf/lige/3/1.c b/inf/lige/3/1.c
new file mode 100644
index 0000000..56e5191
--- /dev/null
+++ b/inf/lige/3/1.c
@@ -0,0 +1,30 @@
+#include <stdio.h>
+#include <stdlib.h>
+struct range {
+ int z;
+ int k;
+};
+struct range gen_range () {
+
+}
+int main (void) {
+ char * buf = malloc(300000);
+ fgets(buf, 255, stdin);
+ fgets(buf, 300000, stdin);
+ char * c = buf;
+ int len = 0;
+ int * a = malloc(10000*sizeof *a);
+ while (c) {
+ a[len++] = strtol(c, &c, 10);
+ c++;
+ }
+ unsigned long long int sum;
+ int z = 0;
+ int k = 0;
+ int sqrt
+ work
+ if (z == lkl) {
+
+ }
+ printf("%llu\n", sum);
+}
diff --git a/inf/lige/3/1.cpp b/inf/lige/3/1.cpp
new file mode 100644
index 0000000..d8eb85f
--- /dev/null
+++ b/inf/lige/3/1.cpp
@@ -0,0 +1,46 @@
+#include <iostream>
+#include <set>
+#include <algorithm>
+using namespace std;
+class Obmo {
+ public:
+ int z, k, nsd;
+ set<int> obm;
+ Obmo () {
+ z = 0;
+ k = 0;
+ obm.clear();
+ }
+ void dodaj (int val) {
+ if (!obm.count()) {
+ nsd = val;
+ obm.insert(val);
+ return;
+ }
+ if (obm.count() == 1) {
+ nsd = gcd(val, nsd);
+ obm.insert(val);
+ return;
+ }
+ if (val % nsd == 0) {
+ obm.insert(val);
+ return;
+ }
+ for (auto itr = obm.begin(); itr != obm.end(); itr++) {
+ if *itr:q
+
+ }
+ }
+ void odvzemi (int val) {
+ if (obm.count() == 2) {
+ obm.erase(val);
+ nsd = gcd(*obm.begin())
+ }
+ }
+ int get (void) {
+ return nsd;
+ }
+};
+int main (void) {
+ cout << "hw" << endl;
+}