#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int line[256];
int main(int argc, char *argv[])
{
int i, m=1;
int in, out;
if (argc>1)
m = atoi(argv[1]);
for (i=0; i<m ;i++) line[i]=0;
i=0;
while (scanf("%d", &in) != EOF) {
out = line[i];
line[i] += in;
i = (i+1)%m;
printf("%d\n",out);
}
return 0;
}
% white 10000 | imul 100 | intg | fftw | gp_fftl > wtintg.png
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int line[256];
int main(int argc, char *argv[])
{
int i, m=16;
int in, out;
if (argc>1)
m = atoi(argv[1]);
for (i=0; i<m ;i++) line[i]=0;
i=0;
while (scanf("%d", &in) != EOF) {
out = in-line[i];
line[i] = in;
i = (i+1)%m;
printf("%d\n",out);
}
return 0;
}
% white 10000 | imul 100 | comb | fftw | gp_fftl > wtcomb.png
% white 10000 | imul 100 | comb | intg | fftw | gp_fftl > wtci.png
% white 10000 | imul 100 | intg | comb | fftw | gp_fftl > wtic.png
% white 10000 | imul 100 | comb | intg | comb | intg | fftw | gp_fftl > wtcici.png
% white 10000 | imul 100 | intg | comb | intg | comb | fftw | gp_fftl > wticic.png
% white 10000 | imul 100 | comb | intg | comb | intg | comb | intg | fftw | gp_fftl > wtcicici.png
% white 10000 | imul 100 | intg | comb | intg | comb | intg | comb | fftw | gp_fftl > wticicic.png
% white 10000 | imul 100 | comb | comb | comb | intg | intg | intg | fftw | gp_fftl > wtccciii.png
% white 10000 | imul 100 | intg | intg | intg | comb | comb | comb | fftw | gp_fftl > wtiiiccc.png
% idds 1000 24000 | head -400| gp_wav > 1k_24ksw.png
% idds 1000 24000 | iups | head -400| gp_wav > upsw.png
% idds 1000 24000 | fftw | gp_fftl > 1k_24ks.png
% idds 1000 24000 | iups | fftw | gp_fftl > ups.png
% white 3840 | imul 100 | comb | intg | fftw | gp_fftl > wci.png
% idds 1000 24000 | iups | comb | intg | fftw | gp_fftl > uci.png
% idds 1000 24000 | iups | comb | intg | head -400| gp_wav > uciw.png
% white 3840 | imul 100 | comb | comb | intg | intg | fftw | gp_fftl > wccii.png
% idds 1000 24000 | iups | comb | comb | intg | intg | fftw | gp_fftl > uccii.png
% idds 1000 24000 | iups | comb | comb | intg | intg | head -400| gp_wav > ucciiw.png
% white 3840 | imul 100 | comb | comb | comb | intg | intg | intg | fftw | gp_fftl > wccciii.png
% idds 1000 24000 | iups | comb | comb | comb | intg | intg | intg | fftw | gp_fftl > uccciii.png
% idds 1000 24000 | iups | comb | comb | comb | intg | intg | intg | head -400| gp_wav > uccciiiw.png
% idds 1000 24000 | comb 1 | comb 1 | comb 1 | iups | intg | intg | intg | fftw | gp_fftl > cccuiii.png
% idds 1000 384000 | head -400| gp_wav > 1k_384ksw.png
% idds 1000 384000 | idws | head -400| gp_wav > dwsw.png
% idds 1000 384000 | fftw | gp_fftl > 1k_384ks.png
% idds 1000 384000 | idws | fftw | gp_fftl > dws.png
% white 3840 110 | imul 100 | fftw | gp_fftl > w11k_384ks.png
% white 3840 110 | imul 100 | idws | fftw | gp_fftl > w11kdws.png
% white 3840 150 | imul 100 | fftw | gp_fftl > w15k_384ks.png
% white 3840 150 | imul 100 | idws | fftw | gp_fftl > w15kdws.png
% white 3840 | imul 100 | intg | intg | intg | comb | comb | comb | fftw | gp_fftl > wiiiccc.png
% white 3840 150 | imul 100 | intg | intg | intg | comb | comb | comb | idws | fftw | gp_fftl > wiiicccd.png
% white 3840 150 | imul 100 | intg | intg | intg | idws | comb 1 | comb 1 | comb 1 | fftw | gp_fftl > iiidccc.png
% white 3840 | imul 100 | idws | fftw | gp_fftl > wdws.png
% white 3840 | imul 100 | intg | intg | intg | idws | comb 1 | comb 1 | comb 1 | fftw | gp_fftl > wiiidccc.png
#include <stdio.h>
#define L (16)
int main(int argc, char *argv[])
{
int i, l;
int in;
l = L;
if (argc>1)
l = atoi(argv[1]);
while (scanf("%d", &in) != EOF) {
for (i=0; i<l ;i++)
if (!i)
printf("%d\n",in);
else
printf("%d\n",0);
}
return 0;
}
#include <stdio.h>
#define M (16)
int main(int argc, char *argv[])
{
int i=0, m;
int in;
m = M;
if (argc>1)
m = atoi(argv[1]);
while (scanf("%d", &in) != EOF) {
if (!(i++%m)) printf("%d\n",in);
}
return 0;
}