[Codeforces] Surprise Language Round 5 D. Date Change

Surprise Language Round 5 D. Date Change

  • Time :
  • Space :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Program-ID.D.
Data Division.
Working-Storage Section.
01 s Pic X(12).
01 t Pic X(12).
01 a Pic S9(12).
Procedure Division.
Accept s.
string s(7:4) s(4:2) s(1:2) into t.
Accept s.
Move s to a.
Compute a=a+function Integer-of-Date(t).
Move function Date-of-Integer(a) to s.
Display s(7:2) "." s(5:2) "." s(1:4).
Stop run.
Author: Song Hayoung
Link: https://songhayoung.github.io/2023/12/20/PS/Codeforces/surprise-language-round-5-d/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.