# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
2430 | pl0892029 | 생일수 II (GA4_birthday2) | C++98 | 6 ms | 5180 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 <cstdio>
char st[200001], ed[200001];
int bn[1000001], front, rear;
int mod=19980305;
int main() {
int sp=0, se=0, ep=0, ee=0;
gets(st); gets(ed);
front = rear = 0;
bn[rear++]=0;
bool secheck, eecheck;
while(st[sp] || ed[ep]) {
secheck=false;
eecheck=false;
if( front==se ) secheck=true;
if( front==ee ) eecheck=true;
int temp = bn[front++];
if( secheck && st[sp]=='3' ) {
sp++;
se = rear;
secheck = false;
}
if( eecheck && ed[ep]=='3' ) {
ep++;
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |