結果
| 問題 |
No.863 計算量
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-16 21:35:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 499 bytes |
| コンパイル時間 | 1,420 ms |
| コンパイル使用メモリ | 158,704 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-22 15:14:29 |
| 合計ジャッジ時間 | 1,829 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 9 WA * 4 |
ソースコード
/**
@file main.cpp
@title No.863 計算量
@url https://yukicoder.me/problems/no/863
**/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define ALL(obj) (obj).begin(), (obj).end()
#define REP(i, N) for (int i = 0; i < (N); ++i)
int main() {
double A, B;
cin >> A >> B;
double n1 = 5000;
double n2 = 200000;
if (abs((A / n1) - (B / n2)) <= abs((A / n1 / n1) - (B / n2 / n2))) {
cout << "1" << endl;
} else {
cout << "2" << endl;
}
return 0;
}