์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- fasttext text classification ํ๊ธ
- SUMBT:Slot-Utterance Matching for Universal and Scalable Belief Tracking
- Python
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ ์ฑ ์ถ์ฒ
- ๋ฐฑ์ค
- ๊ฒ์์์ง
- ๋ชจ๋์๋ฅ๋ฌ๋
- ์์ฐ์ด์ฒ๋ฆฌ ๋ ผ๋ฌธ ๋ฆฌ๋ทฐ
- MySQL
- Leveraging Slot Descriptions for Zero-Shot Cross-Domain Dialogue State Tracking
- ํ๋ก๊ทธ๋๋จธ์ค
- How Much Knowledge Can You Pack Into the Parameters of a Language Model?
- Zero-shot transfer learning with synthesized data for multi-domain dialogue state tracking
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ์ ๊ณต์ํฉ๊ฒฉํ๊ธฐ
- From Machine Reading Comprehension to Dialogue State Tracking: Bridging the Gap
- ํ์ด์ฌ์ ํ์ด์ฌ๋ต๊ฒ
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ์ ๊ณต์
- nlp๋ ผ๋ฌธ๋ฆฌ๋ทฐ
- 2020์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌํ๊ธฐ
- ๋ฐ์ดํฐ ํฉ์ฑ
- DST zeroshot learning
- ๋ฅ๋ฌ๋๊ธฐ์ด
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ ์์ ๋น
- classification text
- ๋ค์ด๋๋ฏน ํ๋ก๊ทธ๋๋ฐ
- DST fewshot learning
- til
- Few Shot Dialogue State Tracking using Meta-learning
- few shot dst
- dialogue state tracking
Archives
- Today
- Total
๐ฒ์๋ผ๋๋์ฒญ๋
Q4963 ์ฌ์ ๊ฐ์ JAVA ๋ณธ๋ฌธ
๋ฐ์ํ
package graph;
import java.util.*;
public class Q4963 {
//์ฌ์ ๊ฐฏ์๋ฅผ ์ธ๋ ๋ฌธ์
static int[] di = {-1,0,1,-1,1,-1,0,1};
static int[] dj = {-1,-1,-1,0,0,1,1,1};
static int arr[][];
static int visit[][];
static int w,h;
public static void main(String[] args) {
// TODO Auto-generated method stub
int cnt=0;
Scanner scan = new Scanner(System.in);
StringTokenizer st;
while(true) {
cnt=0;
String s = scan.nextLine();
st = new StringTokenizer(s," ");
w = Integer.parseInt(st.nextToken());
h = Integer.parseInt(st.nextToken());
if(w==0 && h==0) break;
arr = new int[h][w];
visit = new int[h][w];
for(int i=0; i<h; i++) {
s = scan.nextLine();
st = new StringTokenizer(s," ");
for(int j=0; j<w; j++) {
arr[i][j] = Integer.parseInt(st.nextToken());
}
}
//์
๋ ฅ์๋ฃ
for(int i=0; i<h; i++) {
for (int j=0; j<w; j++) {
if(arr[i][j]==1 && visit[i][j]==0) {
find(i,j);
cnt++;
}
}
}
System.out.println(cnt);
}
}
public static void find(int i, int j) {
visit[i][j] = 1;
for(int k=0; k<8; k++) {
int ni = i + di[k];
int nj = j + dj[k];
if(ni>=0 && nj>=0 && ni<h && nj<w) {
if(arr[ni][nj]==1 && visit[ni][nj]==0) {
find(ni,nj);
}
}
}
}
}
๋ฐ์ํ
'์๊ณ ๋ฆฌ์ฆ ๋ฌธ์ ํ์ด' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Q1026 ๋ณด๋ฌผ(java) (0) | 2019.09.15 |
---|---|
Q9496 ํ ํ๋ก์ ํธ(์๊ฐ์ด๊ณผ๋ก ์คํจ) (0) | 2019.05.07 |
Q 2667 ๋จ์ง๋ฒํธ ๋ถ์ด๊ธฐ JAVA (0) | 2019.05.07 |
array list์ Dfs, bfs(java) (0) | 2019.04.02 |
array list๋ก ๊ตฌํํ graph (0) | 2019.04.02 |