Buatlah program yang melakukan pengurutan N (2≤N≤1000) buah bilangan seperti pada contoh kasus di bawah ini.
- Baris pertama berisi satu buah bilangan N.
| @echo off | |
| REM DO NOT USE THIS INSIDE THE FOLDER WHICH ALREADY HAS .GIT REPO | |
| IF EXIST .git ( | |
| echo THERE'S A .GIT FOLDER!!! Aborting. | |
| ) ELSE ( | |
| git init | |
| echo * text=auto eol=lf>.gitattributes | |
| git add -A | |
| git commit -m "Init the Dummy" |
| import bpy | |
| scene = bpy.context.scene | |
| objs = [obj for obj in scene.objects if hasattr(obj.data, 'vertices')] | |
| objs.sort(key=lambda x: len(x.data.vertices), reverse=True) | |
| print("Enumerating...\t verts\t edges\t faces") | |
| for m in objs: |
| :: for mp4 the recommended video and audio codec is h264 and aac. You may opt out that though. | |
| :: if you really want to save this as batch, replace % with %%. | |
| :: convert *.avi to *.mp4 | |
| ffmpeg -i "%f" "%~nf.mp4" -acodec aac -vcodec h264 | |
| :: convert all *.avi to *.mp4 | |
| for %f in (*.avi) do (ffmpeg -i "%f" "%~nf.mp4" -acodec aac -vcodec h264) | |
| :: merge all *.avi to single *.mp4 |
| c=document.body; | |
| _='b=[85,1,-1],d=Array(1,0,4, onpoimov(>{dd=>d%2),90+e.x= e-12}),setIval(()=>{a1])%,f*2])*f+a,(<=a||!a1!f2|<f!(=||( 0einnerText(d,e)=>e%?d:"\\n"+d))},;100] e].fill(=d.map(]*=-1)|((||3,c. d[b[)&&/|0,0)]=e=nter=(+';for(Y in $=' ')with(_.split($[Y]))_=join(pop());eval(_) |
| + + +++ | |
| ^^^^^^^^^ +---- | |
| *********** ^ ^^^^^^^^^ +++ ^^^^^^^^^ | |
| ******* ************* ^^ ^^^^^^^ ------------| ^^^^^^^^^^^^^^ | |
| *********** *********** ^^^^^^^^^^^^^^^ ---******|| |
| for %%* in (.) do set CurrDirName=%%~nx* | |
| for %%v in (*.ogg) do ffmpeg -loglevel panic -i ^"%%v^" -vn -ar 44100 -ac 2 -ab 192k -f mp3 ^"%%~nv.mp3^" | |
| for %%v in (*.mp3) do echo file ^'%%v^'>>list.txt | |
| ffmpeg -safe 0 -f concat -i list.txt -c copy "%CurrDirName%.mp3" |
| for %%v in (*.mp4) do ffmpeg -i "%%v" -vcodec h264 -b:v 800k -acodec mp3 "compress/%%v" |