結果

問題 No.141 魔法少女コバ
ユーザー vwxyzvwxyz
提出日時 2023-04-07 15:33:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 2,603 ms / 5,000 ms
コード長 162 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 82,456 KB
実行使用メモリ 57,652 KB
最終ジャッジ日時 2024-04-10 16:15:43
合計ジャッジ時間 15,118 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
52,384 KB
testcase_01 AC 2,015 ms
57,652 KB
testcase_02 AC 2,603 ms
57,508 KB
testcase_03 AC 34 ms
53,652 KB
testcase_04 AC 32 ms
53,816 KB
testcase_05 AC 32 ms
53,008 KB
testcase_06 AC 33 ms
51,884 KB
testcase_07 AC 32 ms
52,496 KB
testcase_08 AC 33 ms
52,872 KB
testcase_09 AC 33 ms
52,616 KB
testcase_10 AC 34 ms
51,820 KB
testcase_11 AC 33 ms
52,028 KB
testcase_12 AC 32 ms
52,704 KB
testcase_13 AC 29 ms
53,276 KB
testcase_14 AC 29 ms
52,552 KB
testcase_15 AC 29 ms
53,748 KB
testcase_16 AC 30 ms
52,384 KB
testcase_17 AC 29 ms
52,296 KB
testcase_18 AC 36 ms
52,380 KB
testcase_19 AC 32 ms
52,620 KB
testcase_20 AC 30 ms
52,576 KB
testcase_21 AC 30 ms
52,412 KB
testcase_22 AC 29 ms
52,032 KB
testcase_23 AC 30 ms
53,388 KB
testcase_24 AC 29 ms
52,128 KB
testcase_25 AC 29 ms
52,616 KB
testcase_26 AC 30 ms
52,740 KB
testcase_27 AC 29 ms
52,652 KB
testcase_28 AC 30 ms
52,672 KB
testcase_29 AC 29 ms
52,328 KB
testcase_30 AC 30 ms
52,896 KB
testcase_31 AC 29 ms
53,604 KB
testcase_32 AC 29 ms
52,488 KB
testcase_33 AC 30 ms
52,588 KB
testcase_34 AC 29 ms
52,552 KB
testcase_35 AC 29 ms
52,280 KB
testcase_36 AC 30 ms
52,984 KB
testcase_37 AC 29 ms
52,832 KB
testcase_38 AC 31 ms
52,184 KB
testcase_39 AC 29 ms
53,892 KB
testcase_40 AC 29 ms
53,136 KB
testcase_41 AC 29 ms
52,408 KB
testcase_42 AC 29 ms
52,224 KB
testcase_43 AC 30 ms
53,228 KB
testcase_44 AC 30 ms
52,224 KB
testcase_45 AC 29 ms
52,744 KB
testcase_46 AC 29 ms
52,400 KB
testcase_47 AC 30 ms
52,704 KB
testcase_48 AC 30 ms
52,356 KB
testcase_49 AC 29 ms
52,376 KB
testcase_50 AC 29 ms
53,144 KB
testcase_51 AC 29 ms
52,868 KB
testcase_52 AC 29 ms
52,888 KB
testcase_53 AC 31 ms
52,308 KB
testcase_54 AC 29 ms
52,508 KB
testcase_55 AC 30 ms
53,216 KB
testcase_56 AC 29 ms
53,144 KB
testcase_57 AC 29 ms
52,856 KB
testcase_58 AC 29 ms
52,332 KB
testcase_59 AC 30 ms
52,772 KB
testcase_60 AC 29 ms
52,080 KB
testcase_61 AC 29 ms
52,388 KB
testcase_62 AC 30 ms
53,164 KB
testcase_63 AC 29 ms
52,368 KB
testcase_64 AC 30 ms
52,404 KB
testcase_65 AC 30 ms
52,476 KB
testcase_66 AC 29 ms
52,356 KB
testcase_67 AC 29 ms
52,336 KB
testcase_68 AC 30 ms
53,208 KB
testcase_69 AC 29 ms
52,452 KB
testcase_70 AC 29 ms
51,828 KB
testcase_71 AC 29 ms
52,804 KB
testcase_72 AC 29 ms
52,080 KB
testcase_73 AC 29 ms
52,800 KB
testcase_74 AC 32 ms
53,428 KB
testcase_75 AC 35 ms
52,568 KB
testcase_76 AC 33 ms
52,500 KB
testcase_77 AC 33 ms
52,464 KB
testcase_78 AC 34 ms
52,464 KB
testcase_79 AC 33 ms
53,912 KB
testcase_80 AC 32 ms
53,468 KB
testcase_81 AC 29 ms
52,344 KB
testcase_82 AC 30 ms
52,376 KB
testcase-evil-0.txt AC 970 ms
58,732 KB
testcase-evil-1.txt AC 621 ms
58,916 KB
testcase-evil-2.txt AC 187 ms
57,880 KB
testcase-evil-3.txt AC 344 ms
57,876 KB
testcase-evil-4.txt AC 1,369 ms
57,948 KB
testcase-evil-5.txt AC 503 ms
57,336 KB
testcase-evil-6.txt AC 275 ms
58,420 KB
testcase-evil-7.txt AC 1,027 ms
57,324 KB
testcase-evil-8.txt AC 300 ms
57,804 KB
testcase-evil-9.txt AC 101 ms
57,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline=sys.stdin.readline

M,N=map(int,readline().split())
ans=0
while N!=M:
    if M>N:
        M-=N
    else:
        N,M=M,N
    ans+=1
print(ans)
0