結果

提出番号 492
提出者 olphe
言語 C++
提出日時 2017-07-19 00:08:34
問題名 (26)たくさんの大きな栗の木の下で
結果 AC
点数 100%

テストケース

テストケース 結果 得点 実行時間 メモリ使用量
1 AC 100% 8ms 8304KB
2 AC 100% 5ms 7984KB
3 AC 100% 1ms 8256KB
4 AC 100% 6ms 8336KB
5 AC 100% 8ms 7968KB

ソースコード

#include "iostream"
#include "climits"
#include "list"
#include "queue"
#include "stack"
#include "set"
#include "functional"
#include "algorithm"
#include "math.h"
#include "utility"
#include "string"
#include "map"
#include "unordered_map"
#include "iomanip"
#include "random"

using namespace std;
const long long int MOD = 1000000007;

long long int power(long long int x, long long int n, long long int M) {
	long long int tmp = 1;

	if (n > 0) {
		tmp = power(x, n / 2, M);
		if (n % 2 == 0) tmp = (tmp*tmp) % M;
		else tmp = (((tmp*tmp) % M)*x) % M;
	}
	return tmp;
}

long long int N, M, K, Q, W, H, L, R;
long long int ans;

using namespace std;

const int number = 20;

int main() {
	ios::sync_with_stdio(false);
	cin >> N >> M >> K;
	for (int i = 0; i < K; i++) {
		cin >> Q;
		if (Q > max(N, M))ans++;
	}
	cout << ans << endl;
	return 0;
}