diff --git a/qtcreator/Assignment2/Assignment2.pro b/qtcreator/Assignment2/Assignment2.pro
new file mode 100644
index 0000000..8b6e209
--- /dev/null
+++ b/qtcreator/Assignment2/Assignment2.pro
@@ -0,0 +1,7 @@
+TEMPLATE = app
+CONFIG += console
+CONFIG -= app_bundle
+CONFIG -= qt
+
+SOURCES += \
+ main.c
diff --git a/qtcreator/Assignment2/Assignment2.pro.user b/qtcreator/Assignment2/Assignment2.pro.user
new file mode 100644
index 0000000..6551d4d
--- /dev/null
+++ b/qtcreator/Assignment2/Assignment2.pro.user
@@ -0,0 +1,335 @@
+
+
+
+
+
+ EnvironmentId
+ {91587133-f58c-407d-9dc4-bbfb728876dd}
+
+
+ ProjectExplorer.Project.ActiveTarget
+ 0
+
+
+ ProjectExplorer.Project.EditorSettings
+
+ true
+ false
+ true
+
+ Cpp
+
+ CppGlobal
+
+
+
+ QmlJS
+
+ QmlJSGlobal
+
+
+ 2
+ UTF-8
+ false
+ 4
+ false
+ 80
+ true
+ true
+ 1
+ true
+ false
+ 0
+ true
+ true
+ 0
+ 8
+ true
+ 1
+ true
+ true
+ true
+ false
+
+
+
+ ProjectExplorer.Project.PluginSettings
+
+
+ true
+
+
+
+ ProjectExplorer.Project.Target.0
+
+ Desktop
+ Desktop
+ {d8cd4848-e2d3-48b1-b7c6-20fe068e7182}
+ 0
+ 0
+ 0
+
+ /home/miti99/Dropbox/QtCreator/build-Assignment2-Desktop-Debug
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ false
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ false
+
+
+ false
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ true
+ clean
+
+ false
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Debug
+ Debug
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 2
+ true
+
+
+ /home/miti99/Dropbox/QtCreator/build-Assignment2-Desktop-Release
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ false
+
+ false
+ false
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ false
+
+
+ false
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ true
+ clean
+
+ false
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Release
+ Release
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ true
+
+
+ /home/miti99/Dropbox/QtCreator/build-Assignment2-Desktop-Profile
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ true
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ false
+
+
+ false
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ true
+ clean
+
+ false
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Profile
+ Profile
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ true
+
+ 3
+
+
+ 0
+ Deploy
+
+ ProjectExplorer.BuildSteps.Deploy
+
+ 1
+ Deploy Configuration
+
+ ProjectExplorer.DefaultDeployConfiguration
+
+ 1
+
+
+ dwarf
+
+ cpu-cycles
+
+
+ 250
+ -F
+ true
+ 4096
+ false
+ false
+ 1000
+
+ true
+
+ false
+ false
+ false
+ false
+ true
+ 0.01
+ 10
+ true
+ kcachegrind
+ 1
+ 25
+
+ 1
+ true
+ false
+ true
+ valgrind
+
+ 0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+ 10
+ 11
+ 12
+ 13
+ 14
+
+ 2
+
+ Assignment2
+
+ Qt4ProjectManager.Qt4RunConfiguration:/home/miti99/Dropbox/QtCreator/Assignment2/Assignment2.pro
+
+ 3768
+ false
+ true
+ true
+ false
+ false
+ true
+
+ /home/miti99/Dropbox/QtCreator/build-Assignment2-Desktop-Debug
+
+ 1
+
+
+
+ ProjectExplorer.Project.TargetCount
+ 1
+
+
+ ProjectExplorer.Project.Updater.FileVersion
+ 22
+
+
+ Version
+ 22
+
+
diff --git a/qtcreator/Assignment2/main.c b/qtcreator/Assignment2/main.c
new file mode 100644
index 0000000..f0d68e2
--- /dev/null
+++ b/qtcreator/Assignment2/main.c
@@ -0,0 +1,23 @@
+#include
+#include
+
+int main()
+{
+ int m = 301,
+ n = 400;
+ FILE *f;
+ f = fopen("out.txt", "w");
+ for (int i = m; i <= n; ++i) {
+ fprintf(f,
+ " def test_%d(self):\n\
+ \"\"\"Test %d\"\"\"\n\
+ input = \"\"\"\n\
+ \n\
+ \"\"\"\n\
+ expect = \n\
+ self.assertTrue(TestParser.checkParser(input,expect,%d))\n",
+ i, i, i);
+ }
+ fclose(f);
+ return 0;
+}
diff --git a/qtcreator/BTGiaiTri_02112019/BTGiaiTri_02112019.pro b/qtcreator/BTGiaiTri_02112019/BTGiaiTri_02112019.pro
new file mode 100644
index 0000000..7f95685
--- /dev/null
+++ b/qtcreator/BTGiaiTri_02112019/BTGiaiTri_02112019.pro
@@ -0,0 +1,7 @@
+TEMPLATE = app
+CONFIG += console c++11
+CONFIG -= app_bundle
+CONFIG -= qt
+
+SOURCES += \
+ main.cpp
diff --git a/qtcreator/BTGiaiTri_02112019/BTGiaiTri_02112019.pro.user b/qtcreator/BTGiaiTri_02112019/BTGiaiTri_02112019.pro.user
new file mode 100644
index 0000000..ef6749d
--- /dev/null
+++ b/qtcreator/BTGiaiTri_02112019/BTGiaiTri_02112019.pro.user
@@ -0,0 +1,332 @@
+
+
+
+
+
+ EnvironmentId
+ {14be4f6b-b57e-474d-92d2-d2228e853d21}
+
+
+ ProjectExplorer.Project.ActiveTarget
+ 0
+
+
+ ProjectExplorer.Project.EditorSettings
+
+ true
+ false
+ true
+
+ Cpp
+
+ CppGlobal
+
+
+
+ QmlJS
+
+ QmlJSGlobal
+
+
+ 2
+ UTF-8
+ false
+ 4
+ false
+ 80
+ true
+ true
+ 1
+ true
+ false
+ 0
+ true
+ true
+ 0
+ 8
+ true
+ 1
+ true
+ true
+ true
+ false
+
+
+
+ ProjectExplorer.Project.PluginSettings
+
+
+
+ ProjectExplorer.Project.Target.0
+
+ Desktop
+ Desktop
+ {2958b464-8270-4c72-9a5f-6731e432fcb5}
+ 0
+ 0
+ 0
+
+ /home/miti99/Workspace/QtCreator/build-BTGiaiTri_02112019-Desktop-Debug
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ false
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ false
+
+
+ false
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ true
+ clean
+
+ false
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Debug
+ Debug
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 2
+ true
+
+
+ /home/miti99/Workspace/QtCreator/build-BTGiaiTri_02112019-Desktop-Release
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ false
+
+ false
+ false
+ true
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ false
+
+
+ false
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ true
+ clean
+
+ false
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Release
+ Release
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ true
+
+
+ /home/miti99/Workspace/QtCreator/build-BTGiaiTri_02112019-Desktop-Profile
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ true
+ true
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ false
+
+
+ false
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ true
+ clean
+
+ false
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Profile
+ Profile
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ true
+
+ 3
+
+
+ 0
+ Deploy
+
+ ProjectExplorer.BuildSteps.Deploy
+
+ 1
+ Deploy Configuration
+
+ ProjectExplorer.DefaultDeployConfiguration
+
+ 1
+
+
+ dwarf
+
+ cpu-cycles
+
+
+ 250
+ -F
+ true
+ 4096
+ false
+ false
+ 1000
+
+ true
+
+ false
+ false
+ false
+ false
+ true
+ 0.01
+ 10
+ true
+ kcachegrind
+ 1
+ 25
+
+ 1
+ true
+ false
+ true
+ valgrind
+
+ 0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+ 10
+ 11
+ 12
+ 13
+ 14
+
+ 2
+
+ BTGiaiTri_02112019
+
+ Qt4ProjectManager.Qt4RunConfiguration:/home/miti99/Workspace/QtCreator/BTGiaiTri_02112019/BTGiaiTri_02112019.pro
+
+ 3768
+ false
+ true
+ true
+ false
+ false
+ true
+
+ /home/miti99/Workspace/QtCreator/build-BTGiaiTri_02112019-Desktop-Debug
+
+ 1
+
+
+
+ ProjectExplorer.Project.TargetCount
+ 1
+
+
+ ProjectExplorer.Project.Updater.FileVersion
+ 22
+
+
+ Version
+ 22
+
+
diff --git a/qtcreator/BTGiaiTri_02112019/main.cpp b/qtcreator/BTGiaiTri_02112019/main.cpp
new file mode 100644
index 0000000..1bd7d09
--- /dev/null
+++ b/qtcreator/BTGiaiTri_02112019/main.cpp
@@ -0,0 +1,67 @@
+#include
+#include
+#include
+#include
+
+#define MAX_SIZE 1000
+
+using namespace std;
+
+int main()
+{
+ int a[MAX_SIZE][MAX_SIZE];
+ int size;
+ {
+ ifstream ifile;
+ string str;
+ int i = 0;
+ ifile.open("in.txt", ios::in);
+
+ while (getline(ifile, str)) {
+ istringstream(str) >> a[0][i];
+ ++i;
+ }
+ size = i;
+ ifile.close();
+ }
+
+ for (int i = 1; i < size; ++i) {
+ for (int j = 0; j < size - i; ++j) {
+ a[i][j] = a[i - 1][j] + a[i - 1][j + 1];
+ }
+ }
+
+ int max = a[0][0];
+ int l = 0;
+ int r = 0;
+
+ for (int i = 0; i < size; ++i) {
+ for (int j = 0; j < size - i; ++j) {
+ if (a[i][j] > max) {
+ max = a[i][j];
+ l = j;
+ r = i + j;
+ }
+ }
+ }
+
+ {
+ ofstream ofile;
+ ofile.open("out.txt", ios::out);
+
+ for (int i = l; i <= r; ++i) {
+ ofile << a[0][i] << ",\t\t";
+ }
+ ofile << "\n";
+
+ for (int i = 0; i <= size; ++i) {
+ for (int j = 0; j <= size - i; ++j) {
+ ofile << a[i][j] << ",\t\t";
+ }
+ ofile << "\n";
+ }
+ ofile.close();
+ }
+
+ return 0;
+}
diff --git a/qtcreator/untitled/main.c b/qtcreator/untitled/main.c
new file mode 100644
index 0000000..50c1c7c
--- /dev/null
+++ b/qtcreator/untitled/main.c
@@ -0,0 +1,23 @@
+#include
+#include
+
+int main()
+{
+ int m = 201,
+ n = 300;
+ FILE *f;
+ f = fopen("out.txt", "w");
+ for (int i = m; i <= n; ++i) {
+ fprintf(f,
+ " def test_%d(self):\n\
+ \"\"\"Test %d\"\"\"\n\
+ input = \"\"\"\n\
+ \n\
+ \"\"\"\n\
+ expect = \"\"\n\
+ self.assertTrue(TestParser.checkParser(input,expect,%d))\n",
+ i, i, i);
+ }
+ fclose(f);
+ return 0;
+}
diff --git a/qtcreator/untitled/untitled.pro b/qtcreator/untitled/untitled.pro
new file mode 100644
index 0000000..fc18d89
--- /dev/null
+++ b/qtcreator/untitled/untitled.pro
@@ -0,0 +1,6 @@
+TEMPLATE = app
+CONFIG += console
+CONFIG -= app_bundle
+CONFIG -= qt
+
+SOURCES += main.c
diff --git a/qtcreator/untitled/untitled.pro.user b/qtcreator/untitled/untitled.pro.user
new file mode 100644
index 0000000..4a2adfc
--- /dev/null
+++ b/qtcreator/untitled/untitled.pro.user
@@ -0,0 +1,336 @@
+
+
+
+
+
+ EnvironmentId
+ {d91d9b4f-bcaa-4ec8-8071-3b7f7bdd2b36}
+
+
+ ProjectExplorer.Project.ActiveTarget
+ 0
+
+
+ ProjectExplorer.Project.EditorSettings
+
+ true
+ false
+ true
+
+ Cpp
+
+ CppGlobal
+
+
+
+ QmlJS
+
+ QmlJSGlobal
+
+
+ 2
+ UTF-8
+ false
+ 4
+ false
+ 80
+ true
+ true
+ 1
+ true
+ false
+ 0
+ true
+ true
+ 0
+ 8
+ true
+ 1
+ true
+ true
+ true
+ false
+
+
+
+ ProjectExplorer.Project.PluginSettings
+
+
+
+ ProjectExplorer.Project.Target.0
+
+ Desktop
+ Desktop
+ {66a5488e-dd2d-4c8e-97d7-94923a52d99a}
+ 0
+ 0
+ 0
+
+ /home/miti99/Dropbox/QtCreator/build-untitled-Desktop-Debug
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ false
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ false
+
+
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ true
+ clean
+
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Debug
+
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 2
+ true
+
+
+ /home/miti99/Dropbox/QtCreator/build-untitled-Desktop-Release
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ false
+
+ false
+ false
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ false
+
+
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ true
+ clean
+
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Release
+
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ true
+
+
+ /home/miti99/Dropbox/QtCreator/build-untitled-Desktop-Profile
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ true
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ false
+
+
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ true
+ clean
+
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Profile
+
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ true
+
+ 3
+
+
+ 0
+ Deploy
+
+ ProjectExplorer.BuildSteps.Deploy
+
+ 1
+ Deploy locally
+
+ ProjectExplorer.DefaultDeployConfiguration
+
+ 1
+
+
+ false
+ false
+ 1000
+
+ true
+
+ false
+ false
+ false
+ false
+ true
+ 0.01
+ 10
+ true
+ 1
+ 25
+
+ 1
+ true
+ false
+ true
+ valgrind
+
+ 0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+ 10
+ 11
+ 12
+ 13
+ 14
+
+ 2
+
+ untitled
+
+ Qt4ProjectManager.Qt4RunConfiguration:/home/miti99/Dropbox/QtCreator/untitled/untitled.pro
+ true
+
+ untitled.pro
+ false
+
+ /home/miti99/Dropbox/QtCreator/build-untitled-Desktop-Debug
+ 3768
+ false
+ true
+ false
+ false
+ true
+
+ 1
+
+
+
+ ProjectExplorer.Project.TargetCount
+ 1
+
+
+ ProjectExplorer.Project.Updater.FileVersion
+ 18
+
+
+ Version
+ 18
+
+