結果
問題 |
No.842 初詣
|
ユーザー |
![]() |
提出日時 | 2019-08-30 14:56:52 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 911 ms |
コンパイル使用メモリ | 28,416 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 10:34:52 |
合計ジャッジ時間 | 1,628 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 10 |
ソースコード
#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"); } }