結果
| 問題 |
No.1350 2019-6problem
|
| コンテスト | |
| ユーザー |
nasubi24
|
| 提出日時 | 2021-01-17 13:13:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 2,000 ms |
| コード長 | 211 bytes |
| コンパイル時間 | 362 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-29 13:42:39 |
| 合計ジャッジ時間 | 1,726 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import math
a,b,k=map(int,input().split())
ok=0
ng=10**30
c=a*b//math.gcd(a,b)
while abs(ok-ng)>1:
num=(ok+ng)//2
cnt=num//a+num//b-num//c
if cnt<k:
ok=num
else:
ng=num
print(ng)
nasubi24