CSES - Datatähti 2015 loppu - Results
Submission details
Task:Kartta
Sender:Laakeri
Submission time:2015-01-29 15:19:50 +0200
Language:C++
Status:READY
Result:0
Feedback
groupverdictscore
#10
#20
#30
#40
Test results
testverdicttimegroup
#10.11 s1details
#20.09 s2details
#30.12 s3details
#40.22 s4details

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-1;
        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:

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:

input
100 100 200
200 71 185 86 113 84 170 60 17...

correct output
(empty)

user output
LVVLVLLLVLLLLLVVLLLLLVVLLVLVLV...

Test 3

Group: 3

Verdict:

input
100 100 1000
824 172 828 721 509 73 437 530...

correct output
(empty)

user output
LLLVVVVLVVLLLVLVLLVLLLVVVVLVVL...

Test 4

Group: 4

Verdict:

input
100 100 10000
7110 9439 3392 1630 368 8481 1...

correct output
(empty)

user output
LVLLLVLVVLLVLVLVLVLLVLVVLVLVVL...