count(a + l, a + r, x ) ( xの個数を判定)
int a[10] = {1, 2, 3, 4, 1, 2, 3, 1, 2, 1};
cout << count(a, a + 10, 1) << endl;
Go to list of users who liked
More than 1 year has passed since last update.
count(a + l, a + r, x ) ( xの個数を判定)
int a[10] = {1, 2, 3, 4, 1, 2, 3, 1, 2, 1};
cout << count(a, a + 10, 1) << endl;
Register as a new user and use Qiita more conveniently
Go to list of users who liked