結果

問題 No.2407 Bouns 2.0
ユーザー chro_96
提出日時 2023-08-11 21:25:14
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 27,904 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-18 15:21:35
合計ジャッジ時間 767 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main () {
  int w = 0;
  int z = 0;
  char b[4] = "";
  
  int res = 0;
  
  int ans = 0;
  
  res = scanf("%d", &w);
  res = scanf("%d", &z);
  res = scanf("%s", b);
  
  ans = 10+((int)(b[0]-'0'))*10+((int)(b[2]-'0'));
  ans *= (w+z)/10;
  
  printf("%d\n", ans);
  return 0;
}
0