結果

問題 No.3294 UECoder
コンテスト
ユーザー paaru
提出日時 2026-02-18 10:51:49
言語 C
(gcc 15.2.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 363 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,378 ms
コンパイル使用メモリ 36,704 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-02-18 10:51:52
合計ジャッジ時間 1,784 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <stdio.h>
#include <string.h>
int main(void) {
    int N; scanf("%d", &N);
    char str[100]; scanf("%s", str);
    
    char oneword = str[0]; int m = 0;
    while (oneword != 'c') {
        m += 1;
        oneword = str[m];
    }
    
    char newstr[100] = "UEC";
    strncat(newstr, str+m+1, strlen(str)-m);

    printf("%s", newstr);
    return 0;
}
0