| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 160312 | model_code | Split (info1cup19_split) | C++17 | 2 ms | 376 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int y,nr,i,a[20];
long long x,z;
int main()
{
    scanf ("%lld", &x);
    assert ((x>=1) && (x<1000000000000000000LL));
    z=(0LL)+x;
    nr=0;
    while (z!=0)
    {
        nr++;
        z/=10;
    }
    assert ((nr%2)==0);
    nr=0;
    while (x>0)
    {
        a[++nr]=x%10;
        x/=10;
    }
    y=0;
    for (i=nr;i>=((nr/2)+1);i--)
        y=y*10+a[i];
    z=0;
    for (i=(nr/2);i>=1;i--)
        z=z*10+a[i];
    printf ("%d %d\n", y, z);
    return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
