2015-08-09から1日間の記事一覧

0136 - Frequency Distribution of Height

#include <iostream> using namespace std; void Slove(int n) { int count[6]={0}; double height; for (int i=0; i<n; ++i) { cin >> height; if (height < 165.0) ++count[0]; else if (height < 170.0) ++count[1]; else if (height < 175.0) ++count[2]; else if (height < 180.0)</n;></iostream>…

0135 - Clock Short Hand and Long Hand

#include <cmath> #include <cstdio> #include <iostream> using namespace std; void Slove(int n) { double hh, mm, angle_h, angle_m; for (int i=0; i</iostream></cstdio></cmath>