QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#408606 | #7637. Exactly Three Neighbors | feather_life | WA | 1ms | 3560kb | C++14 | 1.4kb | 2024-05-10 20:00:31 | 2024-05-10 20:00:32 |
Judging History
answer
#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0);cout.tie(0);
int p,q;
cin >> p >> q;
if(p * 3 <= q * 2)
{
int w = q * 2,c = p * 2;
cout << 1 << " " << w << '\n';
while(c)
{
cout << "##.";
c -= 2;
w -= 3;
}
while(w)
{
cout << '.';
w--;
}
}
else if(p == 4 && q == 5)
{
cout << "5 5\n";
puts(".####");
puts("##.##");
puts("####.");
puts("#.###");
puts("###.#");
}
else if(p == 7 && q == 10)
{
cout << "5 4\n";
puts(".##.");
puts("####");
puts("#..#");
puts("####");
puts(".##.");
}
else if(p == 7 && q == 9)
{
cout << "18 6\n";
puts("..####");
puts("###.##");
puts("#####.");
puts("#..###");
puts("##.###");
puts(".#####");
puts("##..##");
puts("#####.");
puts("#.####");
puts("###..#");
puts(".#####");
puts("##.###");
puts("####..");
puts("#.####");
puts("###.##");
puts(".####.");
puts("##.###");
puts("####.#");
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3560kb
input:
2 3
output:
1 6 ##.##.
result:
ok good solution
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3552kb
input:
1 1
output:
result:
wrong output format Unexpected end of file - int32 expected