首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
usaco10oct专题
洛谷p2994题解 [USACO10OCT] Dinner Time S
题目描述 Farmer John's N (1 <= N <= 1,000) cows conveniently numbered 1..N are participating in the IOI in Bulgaria. The cows like the Bulgarian sun and are enjoying their holiday. All seems well. This
阅读更多...
洛谷-P1596 [USACO10OCT] Lake Counting S
P1596 [USACO10OCT] Lake Counting S - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) #include<bits/stdc++.h>using namespace std;const int N=110;int m,n;char g[N][N];bool st[N][N]; //走/没走int dx[]= {-1,-1,-1,
阅读更多...
【洛谷 P1596】[USACO10OCT] Lake Counting S 题解(深度优先搜索)
[USACO10OCT] Lake Counting S 题面翻译 由于近期的降雨,雨水汇集在农民约翰的田地不同的地方。我们用一个 N × M ( 1 ≤ N ≤ 100 , 1 ≤ M ≤ 100 ) N\times M(1\leq N\leq 100, 1\leq M\leq 100) N×M(1≤N≤100,1≤M≤100) 的网格图表示。每个网格中有水(W) 或是旱地(.)。一个网格
阅读更多...