Task: | Kartta |
Sender: | Laakeri |
Submission time: | 2015-01-29 15:23:01 +0200 |
Language: | C++ |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 12 |
#2 | ACCEPTED | 27 |
#3 | ACCEPTED | 15 |
#4 | ACCEPTED | 46 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.10 s | 1 | details |
#2 | ACCEPTED | 0.10 s | 2 | details |
#3 | ACCEPTED | 0.11 s | 3 | details |
#4 | ACCEPTED | 0.22 s | 4 | details |
Code
#include <iostream> using namespace std; typedef long long ll; int bs[101][101][20]; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); int n,m,h; cin>>n>>m>>h; for (int i=0;i<n;i++){ for (int ii=0;ii<m;ii++){ int t; cin>>t; for (int a=0;a<19;a++){ if (t&(1<<a)){ bs[i][ii][a]=1; } } } } int lol=1; for (int a=0;a<19;a++){ //cout<<lol<<endl; for (int i=0;i<n;i++){ for (int ii=0;ii<m;ii++){ if (bs[i][ii][a]){ cout<<'V'; } else cout<<'L'; } cout<<'\n'; } lol++; } for (int a=0;a<19;a++){ //cout<<lol<<endl; for (int i=0;i<n;i++){ for (int ii=0;ii<m;ii++){ if (bs[i][ii][a]){ cout<<'L'; } else cout<<'S'; } cout<<'\n'; } lol++; } for (int a=0;a<2;a++){ //cout<<lol<<endl; for (int i=0;i<n;i++){ for (int ii=0;ii<m;ii++){ cout<<'V'; } cout<<'\n'; } lol++; } for (int i=1;i<=h;i++){ cout<<20<<" "; cout<<40<<" "; int hh=i; for (int a=0;a<19;a++){ if (hh&(1<<a)){ cout<<20+a<<" "; } else{ cout<<a+1<<" "; } } cout<<endl; } }
Test details
Test 1
Group: 1
Verdict: ACCEPTED
input |
---|
100 100 40 40 11 38 24 5 31 40 10 17 33 1... |
correct output |
---|
(empty) |
user output |
---|
LVLLVVLLVVLVLLVLLVLLLVLVLVLVLV... |
Test 2
Group: 2
Verdict: ACCEPTED
input |
---|
100 100 200 200 71 185 86 113 84 170 60 17... |
correct output |
---|
(empty) |
user output |
---|
LVVLVLLLVLLLLLVVLLLLLVVLLVLVLV... |
Test 3
Group: 3
Verdict: ACCEPTED
input |
---|
100 100 1000 824 172 828 721 509 73 437 530... |
correct output |
---|
(empty) |
user output |
---|
LLLVVVVLVVLLLVLVLLVLLLVVVVLVVL... |
Test 4
Group: 4
Verdict: ACCEPTED
input |
---|
100 100 10000 7110 9439 3392 1630 368 8481 1... |
correct output |
---|
(empty) |
user output |
---|
LVLLLVLVVLLVLVLVLVLLVLVVLVLVVL... |