摘要: 贪心 A - Guest From the Past 先买塑料和先买玻璃两者取最大值 #include <bits/stdc++.h> typedef long long ll; int main(void) { ll n, a, b, c; std::cin >> n >> a >> b >> c 阅读全文
posted @ 2016-02-16 20:12 Running_Time 阅读(221) 评论(0) 推荐(0)
摘要: 在家补补题 模拟 A - Robot Sequence #include <bits/stdc++.h> char str[202]; void move(int &x, int &y, char ch) { if (ch == 'U') x--; if (ch == 'D') x++; if (c 阅读全文
posted @ 2016-02-16 18:18 Running_Time 阅读(253) 评论(0) 推荐(0)