<span>it is caused by A.overgrazing
</span>
The simulation, player 2 will always play according to the same strategy.
Method getPlayer2Move below is completed by assigning the correct value to result to be returned.
Explanation:
- You will write method getPlayer2Move, which returns the number of coins that player 2 will spend in a given round of the game. In the first round of the game, the parameter round has the value 1, in the second round of the game, it has the value 2, and so on.
#include <bits/stdc++.h>
using namespace std;
bool getplayer2move(int x, int y, int n)
{
int dp[n + 1];
dp[0] = false;
dp[1] = true;
for (int i = 2; i <= n; i++) {
if (i - 1 >= 0 and !dp[i - 1])
dp[i] = true;
else if (i - x >= 0 and !dp[i - x])
dp[i] = true;
else if (i - y >= 0 and !dp[i - y])
dp[i] = true;
else
dp[i] = false;
}
return dp[n];
}
int main()
{
int x = 3, y = 4, n = 5;
if (findWinner(x, y, n))
cout << 'A';
else
cout << 'B';
return 0;
}
A string is generally considered as a data type and is often implemented as an array data structure of bytes (or words) that stores a sequence of elements, typically characters, using some character encoding. String may also denote more general arrays or other sequence (or list) data types and structures.
True. At least that's how it is for camera's that print photos. Not digital cameras
Answer:
The development of computers from the beginning to what we see now is called the computer generations. It is gradual advancement in the technology in the making of the computer.
Explanation:
The generation in computer technology can be defined as the development or the change in the technology in the computer as it was used. There were five generations of computer development. They were :
1. First Generation computers
In this generation, vacuum tubes was used in the circuits. It dated from 1946 to 1959.
2. Second Generation computers
These are transistors based computers. This generation ranges from 1959 to 1965.
3. Third Generation computers
This generation computers were Integrated circuit based. The generation stared in 1965 and ended in 1971.
4. Fourth Generation computers
The computers of this generation used VLSI microprocessor in the circuits. The period of the 4th generation computers are from 1971 to 1980.
5. Fifth Generation computers
The computers of this generation used ULSI microprocessor in the circuits. The 5th generation computers started from 1980s.