| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 675808 | Tangirkul | Kaučuk (COCI21_kaucuk) | C++17 | 1 ms | 320 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
  
#define ll long long
#define fi first
#define se second
#define pb push_back
#define sz size
#define Junanna ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
  
using namespace std;
  
const ll K = 32;
const ll INF = 1e9 + 7;
const ll MOD = 1e9 + 7;
const ll N = (1e5 + 125);
 
void ma1n ()
{
    ll n;
    cin >> n;
    ll v[500];
    for (ll i = 0; i <= 400; i++)
    {
        v[i] = 0;
    }
    ll sze = 1;
    for (ll t = 1; t <= n; t++)
    {
        string a, b;
        cin >> a >> b;
        ll cnt = 1;
        for (ll i = 2; i < a.sz (); i+=3)
        {
            if (a[i - 2] == 's' && a[i - 1] == 'u' && a[i] == 'b')
            {
                cnt++;
            }
            else
            {
                break;
            }
        }
        if (cnt == sze)
        {
            v[cnt]++;
        }
        else if (cnt > sze)
        {
            for (ll j = sze + 1; j <= cnt; j++)
            {
                v[j]++;
            }
            sze = cnt;
        }
        else
        {
            for (ll j = sze; j > cnt; j--)
            {
                v[j]--;
            }
            v[cnt]++;
            sze = cnt;
        }
        cout << v[1];
        for (ll j = 2; j <= sze; j++)
        {
            cout << "." << v[j];
        }
        cout << " ";
        cout << b << "\n";
    }
}
    
int main ()
{
    Junanna;
    ll t = 1;
    while (t--)
    {
        ma1n ();
    }
    return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | 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... | ||||
