Submission #1815606
Source Code Expand
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
int dx4[] = { 1, -1, 0, 0 };
int dy4[] = { 0, 0, 1, -1 };
int dx8[] = { 1, -1, 0, 0, 1, 1, -1, -1 };
int dy8[] = { 0, 0, -1, 1, -1, 1, -1, 1 };
int mDays[] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
ll A, B, C, D, E, F, G, H, I, J, K, L, M,
N, O, P, Q, R, S, T, U, V, W, X, Y, Z;
namespace arc018a {
void arc018a();
}
namespace arc010b {
void arc010b();
}
int main()
{
arc018a::arc018a();
//arc010b::arc010b();
return 0;
}
template <typename T>
vector<T> INP(ll n)
{
vector<T> x;
REP(i, n) {
T tmp; cin >> tmp;
x.push_back(tmp);
}
return move(x);
}
//* n文字1行の文字列を入力,一文字ごとの配列を返す
vector<char> SPRIT_STRING(ll n)
{
string str; cin >> str;
vector<char> cs(n);
REP(i, n) cs[i] = str[i];
return move(cs);
}
//* 文字列中から文字列を検索して別の文字列に置換する
void strReplace(std::string& str, const std::string& from, const std::string& to) {
std::string::size_type pos = 0;
while (pos = str.find(from, pos), pos != std::string::npos) {
str.replace(pos, from.length(), to);
pos += to.length();
}
}
//* 素数判定 is_prime<unsigned>(N)
template<typename T, std::enable_if_t<std::is_unsigned<T>::value, std::nullptr_t> = nullptr>
bool is_prime(const T n) {
if (n < 4) return n == 2 || n == 3;
if (n % 2 == 0 || n % 3 == 0 || (n % 6 != 1 && n % 6 != 5)) return false;
for (T i = 5; i * i <= n; i += 6) if (n % i == 0 || n % (i + 2) == 0) return false;
return true;
}
namespace arc018a {
void arc018a()
{
double Height, BMI;
cin >> Height >> BMI;
cout << BMI * (Height / 100.0) * (Height / 100.0) << endl;
}
}
Submission Info
Submission Time |
|
Task |
A - BMI |
User |
xoke |
Language |
C++14 (GCC 5.4.1) |
Score |
100 |
Code Size |
1911 Byte |
Status |
AC |
Exec Time |
3 ms |
Memory |
384 KB |
Judge Result
Set Name |
Sample |
All |
Score / Max Score |
0 / 0 |
100 / 100 |
Status |
|
|
Set Name |
Test Cases |
Sample |
sample_01.txt, sample_02.txt |
All |
case_01.txt, case_02.txt, case_03.txt, case_04.txt, case_05.txt, case_06.txt, case_07.txt, case_08.txt, case_09.txt, case_10.txt, case_11.txt, case_12.txt, case_13.txt, case_14.txt, case_15.txt, case_16.txt, case_17.txt, case_18.txt |
Case Name |
Status |
Exec Time |
Memory |
case_01.txt |
AC |
3 ms |
384 KB |
case_02.txt |
AC |
1 ms |
256 KB |
case_03.txt |
AC |
1 ms |
256 KB |
case_04.txt |
AC |
1 ms |
256 KB |
case_05.txt |
AC |
1 ms |
256 KB |
case_06.txt |
AC |
1 ms |
256 KB |
case_07.txt |
AC |
1 ms |
256 KB |
case_08.txt |
AC |
1 ms |
256 KB |
case_09.txt |
AC |
1 ms |
256 KB |
case_10.txt |
AC |
1 ms |
256 KB |
case_11.txt |
AC |
1 ms |
256 KB |
case_12.txt |
AC |
1 ms |
256 KB |
case_13.txt |
AC |
1 ms |
256 KB |
case_14.txt |
AC |
1 ms |
256 KB |
case_15.txt |
AC |
1 ms |
256 KB |
case_16.txt |
AC |
1 ms |
256 KB |
case_17.txt |
AC |
1 ms |
256 KB |
case_18.txt |
AC |
1 ms |
256 KB |
sample_01.txt |
AC |
1 ms |
256 KB |
sample_02.txt |
AC |
1 ms |
256 KB |