随笔分类 -  CodeForces

some problems on CF
摘要:一道关于表达式的题目。。。 思路参考了xhr大大的题解,在此贴上: 算法讨论我们考虑一个宏是否是“安全”的,经过观察和一些实验,可以发现,只有以下4种状态:•状态1(s1):这个宏完全安全,以任何方式使用该宏都没问题。•状态2(s2):这个宏不安全,只要表达式中出现该宏,都会导致表达式不安全。•状态 阅读全文
posted @ 2016-02-16 15:10 OZTOET 阅读(484) 评论(0) 推荐(0)
摘要:A: #include<iostream> using namespace std; int main() { int n; cin>>n; cout<<(n-1)/5+1; } B: #include<iostream> using namespace std; int n; int pos[11 阅读全文
posted @ 2016-01-28 12:15 OZTOET 阅读(154) 评论(0) 推荐(0)
摘要:A. Mike and Faxtime limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outputWhile Mike was walking in the ... 阅读全文
posted @ 2015-06-02 17:05 OZTOET 阅读(274) 评论(0) 推荐(0)
摘要:B. Mike and Funtime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard outputMike and some bears are playi... 阅读全文
posted @ 2015-06-02 11:45 OZTOET 阅读(152) 评论(0) 推荐(0)