about summary refs log tree commit diff
path: root/09/Q-Huế-2014/bai3.pas
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2020-06-06 21:33:13 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2020-06-06 21:33:13 +0700
commit2f674dc80f0382f1c3178f435714960734dc9d3c (patch)
tree2abba7e4ec72bd16f58f7375126144d3fd9f4bca /09/Q-Huế-2014/bai3.pas
parentb2d80610db6beda38573890ed169815e495bc663 (diff)
downloadcp-2f674dc80f0382f1c3178f435714960734dc9d3c.tar.gz
Reorganize stuff from secondary school
Diffstat (limited to '09/Q-Huế-2014/bai3.pas')
-rw-r--r--09/Q-Huế-2014/bai3.pas34
1 files changed, 0 insertions, 34 deletions
diff --git a/09/Q-Huế-2014/bai3.pas b/09/Q-Huế-2014/bai3.pas
deleted file mode 100644
index 91fc05f..0000000
--- a/09/Q-Huế-2014/bai3.pas
+++ /dev/null
@@ -1,34 +0,0 @@
-var
-  x, y: string;
-  f: text;
-  a: array[0 .. 9] of shortint;
-  b: shortint;
-  c: char;
-
-begin
-  assign(f, 'INPUT.INP');
-  reset(f);
-  readln(f, x);
-  readln(f, y);
-  close(f);
-
-  fillchar(a, 0, sizeof(a));
-
-  for c in x do
-    a[ord(c) - 48] := 1;
-
-  for c in y do
-    begin
-      b := ord(c) - 48;
-      if a[b] = 1 then
-        a[b] := 2
-    end;
-
-  assign(f, 'OUTPUT.OUT');
-  rewrite(f);
-  for b := 9 downto 0 do
-    if a[b] = 2 then
-      write(f, b);
-  writeln(f);
-  close(f)
-end.