結果
| 問題 |
No.141 魔法少女コバ
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-08-02 05:12:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 5,000 ms |
| コード長 | 192 bytes |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-11 05:47:20 |
| 合計ジャッジ時間 | 5,269 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 93 |
ソースコード
# your code goes here
#magic
M,N=(int(i) for i in input().split())
c=0
if N>M:
t=M
M=N
N=t
c+=1
while N>0:
t=N
c+=M//N+ 1
N=M%N
M=t
# print (c)
c-=2
print(c)
rocoder