Submission #62095268
Source Code Expand
Copy
#include <bits/stdc++.h>using namespace std;#define ll long long intint main() {int row,col,count=0;cin>>row>>col;vector<string> s(row);for (int i = 0; i < row; i++) {cin >> s[i];}if(row==1||col==1){cout<<"Yes"<<"\n";}else{for(ll i=0;i<row;i++){
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { int row,col,count=0; cin>>row>>col; vector<string> s(row); for (int i = 0; i < row; i++) { cin >> s[i]; } if(row==1||col==1){ cout<<"Yes"<<"\n"; } else{ for(ll i=0;i<row;i++){ for(ll j=0;j<col;j++){ if((s[i][j]=='#'|| s[i][j]=='?') && (s[i][j+1]=='#'|| s[i][j+1]=='?') && (s[i+1][j]=='#'|| s[i+1][j]=='?') && (s[i+1][j+1]=='#'|| s[i+1][j+1]=='?')){ count++; break; } } break; } if(count>0){ cout<<"Yes"<<"\n"; } else{ cout<<"No"<<"\n"; } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - Paint to make a rectangle |
User | turna_majumder |
Language | C++ 20 (gcc 12.2) |
Score | 0 |
Code Size | 766 Byte |
Status | WA |
Exec Time | 13 ms |
Memory | 5592 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example_00.txt, example_01.txt, example_02.txt |
All | example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, hand_10.txt, hand_11.txt, hand_12.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, random_20.txt, random_21.txt, random_22.txt, random_23.txt, random_24.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example_00.txt | AC | 1 ms | 3380 KB |
example_01.txt | AC | 1 ms | 3668 KB |
example_02.txt | AC | 1 ms | 3544 KB |
hand_00.txt | AC | 12 ms | 5468 KB |
hand_01.txt | WA | 12 ms | 5488 KB |
hand_02.txt | AC | 12 ms | 5488 KB |
hand_03.txt | AC | 12 ms | 5344 KB |
hand_04.txt | WA | 12 ms | 5488 KB |
hand_05.txt | AC | 1 ms | 3420 KB |
hand_06.txt | AC | 1 ms | 3480 KB |
hand_07.txt | AC | 1 ms | 3460 KB |
hand_08.txt | WA | 1 ms | 3532 KB |
hand_09.txt | WA | 12 ms | 5492 KB |
hand_10.txt | WA | 12 ms | 5344 KB |
hand_11.txt | WA | 13 ms | 5444 KB |
hand_12.txt | WA | 12 ms | 5592 KB |
random_00.txt | WA | 11 ms | 4440 KB |
random_01.txt | AC | 11 ms | 5168 KB |
random_02.txt | AC | 10 ms | 4416 KB |
random_03.txt | WA | 11 ms | 4516 KB |
random_04.txt | WA | 12 ms | 5432 KB |
random_05.txt | AC | 10 ms | 4488 KB |
random_06.txt | WA | 12 ms | 5456 KB |
random_07.txt | AC | 11 ms | 5212 KB |
random_08.txt | AC | 11 ms | 4528 KB |
random_09.txt | AC | 10 ms | 4396 KB |
random_10.txt | WA | 11 ms | 4268 KB |
random_11.txt | WA | 12 ms | 5324 KB |
random_12.txt | WA | 11 ms | 5296 KB |
random_13.txt | AC | 12 ms | 5344 KB |
random_14.txt | WA | 11 ms | 4432 KB |
random_15.txt | AC | 11 ms | 5360 KB |
random_16.txt | AC | 10 ms | 4364 KB |
random_17.txt | AC | 11 ms | 5292 KB |
random_18.txt | WA | 10 ms | 4476 KB |
random_19.txt | AC | 11 ms | 4468 KB |
random_20.txt | AC | 10 ms | 4492 KB |
random_21.txt | WA | 11 ms | 4424 KB |
random_22.txt | WA | 11 ms | 4428 KB |
random_23.txt | WA | 11 ms | 4312 KB |
random_24.txt | AC | 11 ms | 4388 KB |