結果

問題 No.328 きれいな連立方程式
ユーザー ayaoniayaoni
提出日時 2020-12-06 01:52:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 581 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 87,236 KB
実行使用メモリ 71,548 KB
最終ジャッジ日時 2023-10-14 14:20:21
合計ジャッジ時間 4,245 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
71,340 KB
testcase_01 AC 59 ms
71,096 KB
testcase_02 AC 60 ms
71,228 KB
testcase_03 AC 61 ms
71,428 KB
testcase_04 AC 60 ms
71,292 KB
testcase_05 AC 61 ms
71,188 KB
testcase_06 AC 58 ms
71,324 KB
testcase_07 AC 62 ms
71,488 KB
testcase_08 AC 59 ms
71,092 KB
testcase_09 AC 60 ms
71,432 KB
testcase_10 AC 60 ms
71,092 KB
testcase_11 AC 61 ms
71,452 KB
testcase_12 AC 61 ms
71,376 KB
testcase_13 AC 61 ms
71,344 KB
testcase_14 AC 63 ms
71,416 KB
testcase_15 AC 64 ms
71,180 KB
testcase_16 AC 65 ms
71,364 KB
testcase_17 AC 64 ms
71,548 KB
testcase_18 AC 63 ms
71,236 KB
testcase_19 AC 59 ms
71,344 KB
testcase_20 AC 59 ms
71,464 KB
testcase_21 AC 64 ms
71,432 KB
testcase_22 AC 66 ms
71,292 KB
testcase_23 AC 64 ms
71,232 KB
testcase_24 AC 64 ms
71,188 KB
testcase_25 AC 58 ms
71,432 KB
testcase_26 AC 63 ms
71,236 KB
testcase_27 AC 60 ms
71,148 KB
testcase_28 AC 59 ms
71,292 KB
testcase_29 AC 63 ms
71,324 KB
testcase_30 AC 60 ms
71,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


c1,c2,c3,c4 = MI()
X1 = (c1*c4-c2*c3)/(c1*c3-c2**2)
X2 = (c2*c4-c3**2)/(c1*c3-c2**2)
D = X1**2-4*X2
print('I' if D < 0 else 'R')
0