remote: You are using an account password for Git over HTTPS.
remote: Beginning March 1, 2022, users are required to use app passwords
remote: for Git over HTTPS.
remote: To avoid any disruptions, change the password used in your Git client
remote: to an app password.
remote: Note, these credentials may have been automatically stored in your Git client
remote: and/or a credential manager such as Git Credential Manager (GCM).
remote: More details:
remote: https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity
display dialog "正の整数を入力してください" default answer "1"set theValue totext returned ofresultasintegerset theValues to {}
(*if theValue is not 1 then repeat while theValue is not 1 set end of theValues to theValue as integer if theValue mod 2 = 0 then set theValue to theValue / 2 else set theValue to theValue * 3 + 1 end if end repeatend ifset end of theValues to theValue as integer*)
collatz(theValue, theValues)
set theResultString to my listItemsToString(theValues, ", ")
display dialog "結果" default answer theResultString
on collatz(n, values)
setendof values to n asintegerif n mod2is1and n >1then
collatz(3* n +1, values)
elseif n mod2=0then
collatz(n /2, values)
endifend collatz
on listItemsToString(theList, theDelimiters)
set tmp to AppleScript'stextitemdelimitersset AppleScript'stextitemdelimitersto theDelimiters
set theListString to theList asstringset AppleScript'stextitemdelimitersto tmp
return theListString
end listItemsToString