結果
問題 |
No.481 1から10
|
ユーザー |
![]() |
提出日時 | 2019-10-08 20:56:03 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 203 bytes |
コンパイル時間 | 454 ms |
コンパイル使用メモリ | 28,416 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 16:49:41 |
合計ジャッジ時間 | 1,266 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 8 |
ソースコード
#include <stdio.h> int main(void){ char s[100]; int count; int sum=45; scanf("%s",s); for(count=0;s[count]!='\0';count++){ if(s[count]>='0'&&s[count]<='9'){sum=sum-(s[count]-48);} } printf("%d\n",sum); }