摘要:
简单题View Code #include <iostream>#include <cstdlib>#include <cstdio>#include <cstring>#include <algorithm>using namespace std;#define maxn 55#define maxm 22int n, m;int card[maxn];bool vis[maxn * maxm];void input(){ for (int i = 0; i < n; i++) scanf("%d", &a 阅读全文
posted @ 2013-03-05 20:19
undefined2024
阅读(213)
评论(0)
推荐(0)
摘要:
简单题View Code #include <iostream>#include <cstdlib>#include <cstdio>#include <cstring>using namespace std;#define maxl 105int ans;int cal(char ch, int d){ if (ch == 'Y') return max(500, d); if (ch == 'B') return int(1.5 * d + 0.5); return 2 * d;}void input(){ c 阅读全文
posted @ 2013-03-05 20:17
undefined2024
阅读(273)
评论(0)
推荐(0)

浙公网安备 33010602011771号