結果

問題 No.69 文字を自由に並び替え
ユーザー githide3
提出日時 2018-07-26 19:29:45
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 464 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 29,184 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-01 03:23:45
合計ジャッジ時間 895 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include    <stdio.h>
#include    <string.h>

int main(void)
{
    char    A[16];
    char    B[16];
    int     i;
    int     sumA = 0;
    int     sumB = 0;

    memset(A, '\0', sizeof(A));
    memset(B, '\0', sizeof(A));
    scanf("%s", A);
    scanf("%s", B);

    for (i = 0; i < strlen(A); i++) {
        sumA += A[i];
        sumB += B[i];
    }

    if (sumA == sumB) {
        printf("YES\n");
    } else {
        printf("NO\n");
    }

    return 0;
}
0