結果

問題 No.1350 2019-6problem
ユーザー matriematrie
提出日時 2021-02-16 21:47:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 115 bytes
コンパイル時間 228 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,696 KB
最終ジャッジ日時 2024-09-13 10:57:00
合計ジャッジ時間 4,006 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other TLE * 1 -- * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a,b,k=map(int,input().split())
l=a*b//math.gcd(a,b)
x=y=0
while y<k:
	x+=k-y
	y=x//a+x//b-x//l
print(x)
0