Anti-Blot System
来源:互联网 发布:找人做网站排名优化 编辑:程序博客网 时间:2024/05/15 08:04
// http://www.spoj.com/problems/ABSYS/#include <iostream>#include <string>#include <sstream>#include <vector>#include <cstdlib>using namespace std;int main(int argc, char* argv[]) {int t;cin >> t;string line;std::getline(std::cin, line);while(t-->0) {std::getline(std::cin, line);std::getline(std::cin, line);stringstream ss(line);vector<string> tokens;string buf;while (ss >> buf) {tokens.push_back(buf);}string a = tokens[0];string b = tokens[1];string c = tokens[2];string d = tokens[3];string e = tokens[4];const string machula = "machula";int inta;int intc;int inte;if (a.find(machula) != string::npos) {intc = atoi(c.c_str());inte = atoi(e.c_str());inta = inte - intc;} else if (c.find(machula) != string::npos) {inta = atoi(a.c_str());inte = atoi(e.c_str());intc = inte - inta;} else if (e.find(machula) != string::npos) {inta = atoi(a.c_str());intc = atoi(c.c_str());inte = inta + intc;} cout << inta << " + " << intc << " = " << inte << endl;}}
0 0
- Anti-Blot System
- soj 1757. Anti-Blot System
- Western Blot
- Southern Blot & Northern Blot
- 【Storm 入门】 Blot分流
- 训练赛 blot
- Anti-Anti-Dump_and_No...(二)
- Anti Hook,Anti BreakPoint
- Anti-Anti MARK
- Anti Hook,Anti BreakPoint
- Anti-Anti-Spider 反反爬
- 解析BLOT例子——HelloBolt5
- anti-XSS
- Anti Pattern
- Anti-pattern
- anti-debug
- Anti-Alias
- Anti-Virus
- HDU 1166(线段树;树状数组)
- Javascript中this、prototype、constructor的理解
- sgu162 Pyramids 四面体面积
- plsql本地编译与解释执行性能差异对比
- HDU 1170(水题)
- Anti-Blot System
- 个人笔记 C++构造函数,析构函数
- 收集几个Objective-C的HTML解析库
- UIScrollView分页的实现
- duplicate symbol _OBJC_METACLASS_$_ClassName
- 关于mktime的问题
- 很低级的错误
- C/C++ search path(头文件搜索路径)
- 2819:W的密码