結果
| 問題 |
No.1027 U+1F4A0
|
| コンテスト | |
| ユーザー |
mmn15277198
|
| 提出日時 | 2021-02-19 11:48:35 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 675 bytes |
| コンパイル時間 | 640 ms |
| コンパイル使用メモリ | 73,364 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-15 20:54:08 |
| 合計ジャッジ時間 | 1,626 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 13 WA * 9 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
using ll = long long;
const int INF = 100100100;
ll gcd(ll a , ll b){
if(a < b)swap(a , b);
if(a % b == 0)return b;
else return gcd(b , a % b);
}
int main(){
int d1 , d2;
cin >> d1 >> d2;
{
if(d1 == d2){
cout << 4 << endl;
exit(0);
}
else if(d1 > d2){
cout << 0 << endl;
exit(0);
}
}
long double h2 = (d1*d1*d1*d1) / (d1*d1 + d1*d1);
if(d1*d1 < h2)cout << 100 << endl;
else if(d1*d1 == h2)cout << 4 << endl;
else cout << 8 << endl;
return 0;
}
mmn15277198