#include <iostream> using namespace std; int main() { int a, b; char c[100000]; cin >> a >> b; for (int i = 0; i < a; ++i) { cin >> c[i]; } for (int i = 1; i <= 6; ++i) { int x; cin >> x; } cout << 3 << endl << 5 << endl << 3 << endl << 1; }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include <iostream> using namespace std; int main() { int a, b; char c[100000]; cin >> a >> b; for (int i = 0; i < a; ++i) { cin >> c[i]; } for (int i = 1; i <= 6; ++i) { int x; cin >> x; } cout << 3 << endl << 5 << endl << 3 << endl << 1; } |