Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include <iostream>
- #include <conio.h>
- #include <string>
- #include <algorithm>
- #include <vector>
- #include <map>
- #include <queue>
- #include <set>
- #include <stack>
- using namespace std;
- typedef long long ll;
- int main()
- {
- ll U, F, D, B, L, R;
- cin >> U >> F;
- D = 7 - U;
- B = 7 - F;
- for (int i = 1; i <= 6; i++)
- {
- if (i != B&&i != D&&i != U&&i != F)
- {
- L = i;
- break;
- }
- }
- R = 7 - L;
- cout << "+-+" << endl;
- cout << "|" << L << "|" << endl;
- cout << "+-+-+-+-+" << endl;
- cout << "|" << U << "|" << F << "|" << D << "|" << B << "|" << endl;
- cout << "+-+-+-+-+" << endl;
- cout << "|" << R << "|" << endl;
- cout << "+-+" << endl;
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment