Submission #00099


ソースコード

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
31
32
33
34
35
36
37
38
39
40
41
42
43
#include<bits/stdc++.h>
using namespace std;
main(){
int H,W;
char mozi[101][101];
int ten[101][101]={0};
cin >> H >> W;
for(int i=0;i<H+1;i++){
for(int j=0;j<W+1;j++){
ten[i+1][j+1]=9;
}
}
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
cin >> mozi[i][j];
}
}
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
if(mozi[i][j]=='c'){
ten[i][j]=0;
}
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
if(ten[i][j-1]==0){
ten[i][j]=1;
}
else if(ten[i][j-1]==1){
ten[i][j]=2;
}
else{
ten[i][j]=-1;
}
}
}
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
cout << ten[i][j] << endl;
}
}
}
}
}

ステータス

項目 データ
問題 0006 - 気象予報士 (Weather Forecaster)
ユーザー名 ei1531
投稿日時 2015-11-12 18:16:58
言語 C++11
状態 Wrong Answer
得点 0
ソースコード長 727 Byte
最大実行時間 8000 ms
最大メモリ使用量 94028 KB

セット

セット 得点 Cases
1 IN1 0 / 20 *2015-yo-t3-in1.txt
2 IN2 0 / 20 *2015-yo-t3-in2.txt
3 IN3 0 / 20 *2015-yo-t3-in3.txt
4 IN4 0 / 20 *2015-yo-t3-in4.txt
5 IN5 0 / 20 *2015-yo-t3-in5.txt

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
2015-yo-t3-in1.txt WA 101 ms 732 KB
1
2015-yo-t3-in2.txt TLE 8000 ms 23708 KB
2
2015-yo-t3-in3.txt TLE 8000 ms 46932 KB
3
2015-yo-t3-in4.txt TLE 8000 ms 70420 KB
4
2015-yo-t3-in5.txt TLE 8000 ms 94028 KB
5