- 博客(5)
- 收藏
- 关注
原创 POJ-3414 pots
常规思路: 1.想清楚六种情况,大致想出代码 2.不要忘记剪枝(去除重复状态) 3.对于无解情况加入一个bool判断 #include <iostream> #include <cstring> #include <string> using namespace std; const int N = 100010; typedef struct { int v1; int v2; string op; } f; f q[N]; int v
2022-05-17 19:50:18
127
原创 洛谷P4327
大致思路是:按照5*5的方阵赋值字符,然后保证‘*’不会被覆盖就可以 #include <stdio.h> #include <string.h> char b[7][100]; int main() { char a[20]; scanf("%s", a); //不知道为什么洛谷上不能用gets int i, j, t, k, l; for (i = 1; i <= strlen(a); i++) { ...
2021-12-10 11:08:32
542
原创 yoj87题
#include <stdio.h> #include <math.h> int i2; int x[10002], y[10002], mark[102][102], mark1[102][102], x11[10002], y11[10002]; double R[102][102], G[102][102], B[102][102], R1[102][102], G1[102][102], B1[102][102]; int judge(doub...
2021-12-03 22:32:33
369
原创 1.入门小白编程日记
1.输入字符串:gets(str),或者scanf("%s",str) 2.注意程序的交互性,判断输入是否满足要求的条件。 3.一些细节
2021-10-12 14:28:34
205
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅