标签:acm
map<pair<int, int>, int> mp; int main() { int n, x, y, v; while (~RI(n)) { REP(kase, n) { RIII(x, y, v); mp[MP(x, y)] += v; mp[MP(x - 1, y)] += v; mp[MP(x, y - 1)] += v; mp[MP(x - 1, y - 1)] += v; } int ans = 0; FC(it, mp) { ans = max(ans, it->second); } printf("%d / 1\n", ans); } return 0; }
标签:acm
原文地址:http://blog.csdn.net/wty__/article/details/38149831