結果
| 問題 |
No.328 きれいな連立方程式
|
| コンテスト | |
| ユーザー |
mayoko_
|
| 提出日時 | 2015-11-08 19:27:49 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,025 bytes |
| コンパイル時間 | 767 ms |
| コンパイル使用メモリ | 84,712 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-13 14:10:35 |
| 合計ジャッジ時間 | 1,769 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
//#include<cctype>
#include<climits>
#include<iostream>
#include<string>
#include<vector>
#include<map>
//#include<list>
#include<queue>
#include<deque>
#include<algorithm>
//#include<numeric>
#include<utility>
#include<complex>
//#include<memory>
#include<functional>
#include<cassert>
#include<set>
#include<stack>
const int dx[] = {1, 0, -1, 0};
const int dy[] = {0, 1, 0, -1};
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pii;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll c1, c2, c3, c4;
cin >> c1 >> c2 >> c3 >> c4;
assert(-5000 <= c1 && c1 <= 5000);
assert(-5000 <= c2 && c2 <= 5000);
assert(-5000 <= c3 && c3 <= 5000);
assert(-5000 <= c4 && c4 <= 5000);
ll a = c1*c4-c2*c3;
ll b = (c3*c1-c2*c2) * (c3*c3-c2*c4);
assert(a*a+4*b != 0);
if (a*a+4*b > 0) cout << "R" << endl;
else cout << "I" << endl;
return 0;
}
mayoko_