結果

問題 No.1940 Escape through + -
ユーザー Rute
提出日時 2022-05-19 15:17:00
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 1,345 ms
コンパイル使用メモリ 28,800 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-18 18:14:16
合計ジャッジ時間 1,875 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main(void){
    int N,M,S;
    scanf("%d %d %d", &N,&M,&S);
    int A[N+1];
    long long ans = 0;
    for (int i = 0;i < N; i++){
        scanf("%d",&A[i]);
        ans += A[i];
    }
    long long P = S - ans;
    if ((P % M) == 0){
        printf("%s\n","Yes");
    }else{
        printf("%s\n","No");
    }
}
0