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)…
331
|
|
|
2019-4-15 16:01
|
2019-4-15 16:01
39 字
|
2 分钟
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 = …
318
|
|
|
2019-4-15 16:00
|
2019-4-15 16:00
44 字
|
3 分钟
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…
286
|
|
|
2019-4-15 16:00
|
2019-4-15 16:00
45 字
|
3 分钟
zoj1099_html格式转换
// zoj1099_html格式转换.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<string> #include<stdio.h> using namespace std; int main() { string str; ch…
290
|
|
|
2019-4-15 15:59
|
2019-4-15 15:59
62 字
|
4 分钟
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…
352
|
|
|
2019-4-15 15:58
|
2019-4-15 15:58
28 字
|
2 分钟
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…
292
|
|
|
2019-4-15 15:57
|
2019-4-15 15:57
78 字
|
4 分钟
ZOJ – 1130 Ouroboros Snake
// ZOJ - 1130 Ouroboros Snake.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <cstdio> #include <iostream> #include <cstring> #include <cmath> #include <al…
308
|
|
|
2019-4-15 15:57
|
2019-4-15 15:57
63 字
|
4 分钟
P1322 logo语言
// P1322 logo语言.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<string> using namespace std; int main() { string str; cin >> str; int len; len = …
289
|
|
|
2019-4-15 15:56
|
2019-4-15 15:56
18 字
|
1 分钟内
P1096 Hanoi双塔问题
// P1096 Hanoi双塔问题.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> #include<cstdio> using namespace std; int main() { int n; //freopen("hanoi.in", "r", s…
290
|
|
|
2019-4-15 15:55
|
2019-4-15 15:55
34 字
|
2 分钟
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"); /…
318
|
|
|
2019-4-15 15:55
|
2019-4-15 15:55
36 字
|
2 分钟