This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import shlex | |
from glob import glob | |
from subprocess import Popen, PIPE | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
int i; int j; float v; float x; float[100] a; | |
while( true ) { | |
do i = i+1; while( a[i] < v); | |
do j = j-1; while( a[j] > v); | |
if( i >= j ) break; | |
x = a[i]; a[i] = a[j]; a[j] = x; | |
} | |
} |
OlderNewer