結果
| 問題 |
No.1027 U+1F4A0
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-17 22:26:31 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 422 bytes |
| コンパイル時間 | 1,085 ms |
| コンパイル使用メモリ | 87,836 KB |
| 最終ジャッジ日時 | 2025-01-09 20:18:35 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using ll = long long;
using namespace std;
constexpr ll INF = 1LL << 60;
double d1, d2;
int main() {
cin >> d1 >> d2;
if (d1 < d2 / 2.0) {
cout << 0;
}
else if (d1 == d2 / 2.0) {
cout << 4;
}
else if (d2 / 2.0 < d1 && d1 < d2) {
cout << 8;
}
else if (d1 == d2) {
cout << 4;
}
else {
cout << 0;
}
cout << endl;
return 0;
}