Submission #2312669
Source Code Expand
#include<cstdio> #include<cmath> #include<algorithm> #include<iostream> using namespace std; int fie[32][32]; int dy[4]={-1,0,0,1}; int dx[4]={0,-1,1,0}; int jyun[4]={0,1,2,3}; int main(){ for(int i=1;i<=30;i++){ for(int j=1;j<=30;j++)cin>>fie[i][j]; } /* for(int i=100;1<=i;i--){ for(int j=1;j<=30;j++){ for(int k=1;k<=30;k++){ if(fie[j][k]==i){ int nowy=j,nowx=k; fie[nowy][nowx]--; for(int l=0;l<4;l++){ if(fie[]) } } } } }*/ for(int i=1;i<=30;i++){ for(int j=1;j<=30;j++){ while(fie[i][j]){ cout<<i<<' '<<j<<endl; fie[i][j]--; } } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 高橋君の山崩しゲーム |
User | latte0119 |
Language | C++14 (GCC 5.4.1) |
Score | 541032 |
Code Size | 874 Byte |
Status | AC |
Exec Time | 76 ms |
Memory | 512 KB |
Judge Result
Set Name | test_01 | test_02 | test_03 | test_04 | test_05 | test_06 | test_07 | test_08 | test_09 | test_10 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 55534 / 100000 | 53221 / 100000 | 54807 / 100000 | 51866 / 100000 | 54778 / 100000 | 54564 / 100000 | 53691 / 100000 | 55284 / 100000 | 53781 / 100000 | 53506 / 100000 | ||||||||||||||||||||
Status |
|
|
|
|
|
|
|
|
|
|
Set Name | Test Cases |
---|---|
test_01 | subtask_01_01.txt |
test_02 | subtask_01_02.txt |
test_03 | subtask_01_03.txt |
test_04 | subtask_01_04.txt |
test_05 | subtask_01_05.txt |
test_06 | subtask_01_06.txt |
test_07 | subtask_01_07.txt |
test_08 | subtask_01_08.txt |
test_09 | subtask_01_09.txt |
test_10 | subtask_01_10.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
subtask_01_01.txt | AC | 72 ms | 512 KB |
subtask_01_02.txt | AC | 75 ms | 512 KB |
subtask_01_03.txt | AC | 73 ms | 512 KB |
subtask_01_04.txt | AC | 76 ms | 512 KB |
subtask_01_05.txt | AC | 73 ms | 512 KB |
subtask_01_06.txt | AC | 73 ms | 512 KB |
subtask_01_07.txt | AC | 74 ms | 512 KB |
subtask_01_08.txt | AC | 72 ms | 512 KB |
subtask_01_09.txt | AC | 75 ms | 512 KB |
subtask_01_10.txt | AC | 76 ms | 512 KB |