結果

問題 No.842 初詣
ユーザー funakoshifunakoshi
提出日時 2019-08-29 10:21:44
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 340 bytes
コンパイル時間 1,181 ms
コンパイル使用メモリ 29,312 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-17 16:48:54
合計ジャッジ時間 1,124 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    int a,b,c,d,e,f,g,money;
    scanf("%d %d %d %d %d %d %d",&a,&b,&c,&d,&e,&f,&g);
    money=a*500+b*100+c*50+d*10+e*5+f;
    if(money==g)
    {
        printf("YES");
    }
    else
    {
        printf("NO");
    }
    
}
0