close

https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=2536

 

#include <iostream>
#include <cstdio>
using namespace std;


int main() {

    int n, total, cnt = 0;
    char alpha;

    while (cin >> n) {
        getchar();
        for(int i = 1; i <= n; i++) {
            cout << "Case " << i << ": ";
            while((alpha=getchar()) != '\n') {
                cin >> total;
                for(int i = 0; i < total; i++){
                    cout << alpha;
                }
            }
            cout << endl;
        }
    }
}

arrow
arrow
    文章標籤
    UVA11541 Decoding
    全站熱搜

    楓綺 發表在 痞客邦 留言(0) 人氣()