# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
19228 | LK149 | 올림픽 피자 (tutorial5) | C++98 | 1000 ms | 1960 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "pizza.h"
int order_num;
int s[9] = { 0 };
bool o[100000][9];
void can_bake(){
for (int i = 0; i<order_num; i++)
{
if (o[i][0]){
for (int j = 1; j <= 8; j++)
{
if (o[i][j] && (s[j] >= 1))
{
o[i][j]=false; s[j]--;
}
}
int sum = 0;
for (int j = 1; j <= 8; j++)
{
sum += o[i][j];
}
if (sum == 0)
{
o[i][0] = 0;
return Bake(i);
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |