1 solutions
-
0
C++ :
#include <bits/stdc++.h> using namespace std; int main(){ string num[5]; num[0] = "..... ****. ..... ....."; num[1] = ".***. ****. ****. ****."; num[2] = ".***. ****. ..... ....."; num[3] = ".***. ****. .**** ****."; num[4] = "..... ****. ..... ....."; string s ; cin >> s; for (int i = 0;i<5;i++){ for (int j = 0;j<s.size();j++){ int id = s[j] - '0'; cout << num[i].substr(id*6,5); } cout << endl; } return 0; }
- 1
Information
- ID
- 151
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 10
- Tags
- # Submissions
- 1
- Accepted
- 1
- Uploaded By