카타 8급 Pole Vault Starting Marks

C++[ | ]

#include <cmath>
double startingMark(double bodyHeight)
{
  double a = (10.67 - 9.45) / (1.83 - 1.52);
  double b= 10.67 - a * 1.83;
  return round(100 * (bodyHeight * a + b)) / 100;
}
#include <cmath>
double startingMark(double bodyHeight)
{
  double a = (10.67 - 9.45) / (1.83 - 1.52);
  return round((a * bodyHeight + 10.67 - a * 1.83) * 100) / 100;
}
#include <cmath>
double startingMark(double bodyHeight)
{
    return round(100*(3.935483871*bodyHeight+3.468064516))/100;
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}