Ancient Cipher #include “iostream” #include “math.h” using namespace std; int compare(…
标签:iostream
poj3094
Quicksum #include “iostream” #include “math.h” using namespace std; int main() { char …
poj1503
Integer Inquiry #include “iostream” #include “math.h” using namespace std; bool isEnd(…
poj1753
Flip Game #include “iostream” using namespace std; unsigned short int flips[16]={0xc800,0xe400,0x7…
poj3006
Dirichlet’s Theorem on Arithmetic Progressions #include “iostream” #include “math.h…
poj2255
Tree Recovery #include “iostream” #include “math.h” using namespace std; #define Max 2…
poj2965
The Pilots Brothers’ refrigerator #include “iostream” #include “math.h” using na…
如何读取整行
直接用cin或者scinf读取字符串,回自动隔断空格和回车,例如要读取“Hello World”就只能按“Hello”和“World”两个串读取。 此时需要使用cin.getline()函数,使用实例如下: #inclu…