about summary refs log tree commit diff
path: root/9/TP-Huế-2014/bai1.pas
diff options
context:
space:
mode:
authorRaphael McSinyx <vn.mcsinyx@gmail.com>2016-11-01 11:31:39 +0700
committerRaphael McSinyx <vn.mcsinyx@gmail.com>2016-11-01 11:31:39 +0700
commitdfaf87f8696bb31bc1a29b2d4a67f17ad1a2f593 (patch)
treeb2cced929ddfa488f8dd9d871aed35266fe43f47 /9/TP-Huế-2014/bai1.pas
parent71a6e456b59171a681bccff7eeba9db7367bca37 (diff)
downloadcp-dfaf87f8696bb31bc1a29b2d4a67f17ad1a2f593.tar.gz
Thêm đề HSG lớp 9 TP Huế
Diffstat (limited to '9/TP-Huế-2014/bai1.pas')
-rw-r--r--9/TP-Huế-2014/bai1.pas15
1 files changed, 15 insertions, 0 deletions
diff --git a/9/TP-Huế-2014/bai1.pas b/9/TP-Huế-2014/bai1.pas
new file mode 100644
index 0000000..7bd0d92
--- /dev/null
+++ b/9/TP-Huế-2014/bai1.pas
@@ -0,0 +1,15 @@
+var
+  n, m, p: qword;
+
+begin
+  read(n, m);
+
+  while m <> 0 do
+    begin
+      p := n mod m;
+      n := m;
+      m := p
+    end;
+
+  writeln(n <> 1)
+end.