模拟
_sophon
Brooding renders me prophetic
展开
-
Luogu P1236 算24点
原题传送门 #include <bits/stdc++.h> using namespace std; int in[5]; int calc(int operName, int x, int y) { if (operName == 1)//+ { return x + y; } if (operName == 2)//- { if (x - y <=...原创 2019-02-20 20:55:13 · 271 阅读 · 0 评论 -
Luogu 月赛 P5238 整数校验器
原题传送门 #include <bits/stdc++.h> using namespace std; bool valid(string s) { if (s == "0") return true; if (s == "-")//巨坑无比 return false; if (s[0] == '-'&&s[1] == '0') return fal...原创 2019-03-02 20:23:57 · 225 阅读 · 0 评论