ZOJ1295 Reverse Text
// ZOJ1295 Reverse Text.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<cstring> using namespace std; void print(char a[]) { int l; l = strlen(a)…
ZOJ1251 Box of Bricks(POJ1477) 很简单 数学题
// ZOJ1251 Box of Bricks(POJ1477) 很简单 数学题.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; int main() { int n3,b=1; while (1) { int n4 = …
zoj1099html_2
#include "stdafx.h" #include<stdio.h> #include<string.h> int main() { char chars[81]; int num = 0; int i, temp; while (scanf("%s", chars) != EOF) { if (strcmp(chars, "&l…
zoj1099_html格式转换
// zoj1099_html格式转换.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<string> #include<stdio.h> using namespace std; int main() { string str; ch…
ZOJ1045HangOver
// ZOJ1045HangOver.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; int main() { double n,i,m; cin >> n; while (n != 0) { i = 2, m = 0; w…
ZOJ Problem Set – 1016-S (((()()())))
// ZOJ Problem Set - 1016-S (((()()()))).cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; int main() { int n; cin >> n; while (n) { int s…
ZOJ – 1130 Ouroboros Snake
// ZOJ - 1130 Ouroboros Snake.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <cstdio> #include <iostream> #include <cstring> #include <cmath> #include <al…
P1322 logo语言
// P1322 logo语言.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<string> using namespace std; int main() { string str; cin >> str; int len; len = …
P1096 Hanoi双塔问题
// P1096 Hanoi双塔问题.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> #include<cstdio> using namespace std; int main() { int n; //freopen("hanoi.in", "r", s…
20180507设计性实验2
// 20180507设计性实验2.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<stdio.h> #include<iostream> using namespace std; int main() { double n, s = 0; printf("请输入n\n"); /…