結果

問題 No.1835 Generalized Monty Hall Problem
ユーザー 👑 H20H20
提出日時 2022-02-12 00:28:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 188 ms / 1,000 ms
コード長 138 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 82,292 KB
最終ジャッジ日時 2023-09-10 07:50:29
合計ジャッジ時間 4,755 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 184 ms
82,148 KB
testcase_01 AC 182 ms
82,168 KB
testcase_02 AC 185 ms
82,176 KB
testcase_03 AC 186 ms
82,180 KB
testcase_04 AC 185 ms
82,292 KB
testcase_05 AC 186 ms
82,160 KB
testcase_06 AC 182 ms
82,240 KB
testcase_07 AC 182 ms
82,248 KB
testcase_08 AC 183 ms
82,180 KB
testcase_09 AC 181 ms
82,224 KB
testcase_10 AC 183 ms
82,044 KB
testcase_11 AC 183 ms
82,140 KB
testcase_12 AC 182 ms
82,144 KB
testcase_13 AC 188 ms
82,148 KB
testcase_14 AC 181 ms
82,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from calendar import c


import math
N,M,K = map(int, input().split())
c = M*(N-1)
m = N**2-K*N-N
gcd = math.gcd(c,m)
print(c//gcd,m//gcd)
0