#include <fstream.hfa>
struct S { int i, j; };
void ?{}( S & s, int i = 0, int j = 0 ) { s.[i, j] = [i, j]; }
void ?{}( S & s, zero_t ) { s.[i, j] = 0; }
int ?<?( S t1, S t2 ) { return t1.i < t2.i && t1.j < t2.j; }
int ?<=?( S t1, S t2 ) { return t1.i <= t2.i && t1.j <= t2.j; }
int ?>?( S t1, S t2 ) { return t1.i > t2.i && t1.j > t2.j; }
int ?>=?( S t1, S t2 ) { return t1.i >= t2.i && t1.j >= t2.j; }
S ?+=?( S & t1, S t2 ) { t1.i += t2.i; t1.j += t2.j; return t1; }
S ?+=?( S & t, one_t ) { t.i += 1; t.j += 1; return t; }
S ?-=?( S & t1, S t2 ) { t1.i -= t2.i; t1.j -= t2.j; return t1; }
S ?-=?( S & t, one_t ) { t.i -= 1; t.j -= 1; return t; }
ofstream & ?|?( ofstream & os, S s ) { return os | "(" | s.i | s.j | ")"; }
void & ?|?( ofstream & os, S s ) { (ofstream &)(os | s); ends( os ); }
int main() {
sout | nlOff; // turn off auto newline
for ( i; 1 ~ @ ) {
if ( i > 10 ) break;
sout | i;
} sout | nl | nl | nl | nl;
for ( i; @ -~ 10 ) {
if ( i < 0 ) break;
sout | i;
} sout | nl | nl | nl | nl;
for ( i; 2 ~ @ ~ 2 ) {
if ( i > 10 ) break;
sout | i;
} sout | nl | nl | nl | nl | nl;
for ( i; 2.1 ~ @ ~ @ ) {
if ( i > 10.5 ) break;
sout | i;
i += 1.7;
} sout | nl | nl | nl | nl;
for ( i; @ -~ 10 ~ 2 ) {
if ( i < 0 ) break;
sout | i;
} sout | nl | nl | nl | nl | nl;
for ( i; 12.1 ~ @ ~ @ ) {
if ( i < 2.5 ) break;
sout | i;
i -= 1.7;
} sout | nl | nl;
for ( i; 10 : j; -5 ~ @ ) { sout | i | j; } sout | nl;
for ( i; 10 : j; @ -~ -5 ) { sout | i | j; } sout | nl;
for ( i; 10 : j; -5 ~ @ ~ 2 ) { sout | i | j; } sout | nl;
for ( i; 10 : j; @ -~ -5 ~ 2 ) { sout | i | j; } sout | nl | nl;
for ( j; -5 ~ @ : i; 10 ) { sout | i | j; } sout | nl;
for ( j; @ -~ -5 : i; 10 ) { sout | i | j; } sout | nl;
for ( j; -5 ~ @ ~ 2 : i; 10 ) { sout | i | j; } sout | nl;
for ( j; @ -~ -5 ~ 2 : i; 10 ) { sout | i | j; } sout | nl | nl;
for ( j; @ -~ -5 ~ 2 : i; 10 : k; 1.5 ~ @ ) { sout | i | j | k; } sout | nl;
for ( j; @ -~ -5 ~ 2 : k; 1.5 ~ @ : i; 10 ) { sout | i | j | k; } sout | nl;
for ( k; 1.5 ~ @ : j; @ -~ -5 ~ 2 : i; 10 ) { sout | i | j | k; } sout | nl | nl;
for ( S i = 0; i < (S){10,10}; i += 1 ) { sout | i; } sout | nl; // C
for ( S i; 0 ~ (S){10,10} ) { sout | i; } sout | nl; // CFA
for ( i; (S){10,10} ) { sout | i; } sout | nl;
sout | nl;
for ( i; (S){0} ~ (S){10,10} ) { sout | i; } sout | nl;
for ( i; (S){0} ~ (S){10,10} ~ (S){1} ) { sout | i; } sout | nl;
for ( i; (S){0} ~= (S){10,10} ) { sout | i; } sout | nl;
for ( i; (S){0} ~= (S){10,10} ~ (S){1} ) { sout | i; } sout | nl;
sout | nl;
for ( i; (S){0} -~ (S){10,10} ) { sout | i; } sout | nl;
for ( i; (S){0} -~ (S){10,10} ~ (S){1} ) { sout | i; } sout | nl;
for ( i; (S){0} -~= (S){10,10} ) { sout | i; } sout | nl;
for ( i; (S){0} -~= (S){10,10} ~ (S){1} ) { sout | i; } sout | nl;
}
|
1 2 3 4 5 6 7 8 9 10
10 9 8 7 6 5 4 3 2 1 0
2 4 6 8 10
2.1 3.8 5.5 7.2 8.9
10 8 6 4 2 0
12.1 10.4 8.7 7. 5.3 3.6
0 -5 1 -4 2 -3 3 -2 4 -1 5 0 6 1 7 2 8 3 9 4
0 -5 1 -6 2 -7 3 -8 4 -9 5 -10 6 -11 7 -12 8 -13 9 -14
0 -5 1 -3 2 -1 3 1 4 3 5 5 6 7 7 9 8 11 9 13
0 -5 1 -7 2 -9 3 -11 4 -13 5 -15 6 -17 7 -19 8 -21 9 -23
0 -5 1 -4 2 -3 3 -2 4 -1 5 0 6 1 7 2 8 3 9 4
0 -5 1 -6 2 -7 3 -8 4 -9 5 -10 6 -11 7 -12 8 -13 9 -14
0 -5 1 -3 2 -1 3 1 4 3 5 5 6 7 7 9 8 11 9 13
0 -5 1 -7 2 -9 3 -11 4 -13 5 -15 6 -17 7 -19 8 -21 9 -23
0 -5 1.5 1 -7 2.5 2 -9 3.5 3 -11 4.5 4 -13 5.5 5 -15 6.5 6 -17 7.5 7 -19 8.5 8 -21 9.5 9 -23 10.5
0 -5 1.5 1 -7 2.5 2 -9 3.5 3 -11 4.5 4 -13 5.5 5 -15 6.5 6 -17 7.5 7 -19 8.5 8 -21 9.5 9 -23 10.5
0 -5 1.5 1 -7 2.5 2 -9 3.5 3 -11 4.5 4 -13 5.5 5 -15 6.5 6 -17 7.5 7 -19 8.5 8 -21 9.5 9 -23 10.5
(0 0) (1 1) (2 2) (3 3) (4 4) (5 5) (6 6) (7 7) (8 8) (9 9)
(0 0) (1 1) (2 2) (3 3) (4 4) (5 5) (6 6) (7 7) (8 8) (9 9)
(0 0) (1 1) (2 2) (3 3) (4 4) (5 5) (6 6) (7 7) (8 8) (9 9)
(0 0) (1 1) (2 2) (3 3) (4 4) (5 5) (6 6) (7 7) (8 8) (9 9)
(0 0) (1 0) (2 0) (3 0) (4 0) (5 0) (6 0) (7 0) (8 0) (9 0)
(0 0) (1 1) (2 2) (3 3) (4 4) (5 5) (6 6) (7 7) (8 8) (9 9) (10 10)
(0 0) (1 0) (2 0) (3 0) (4 0) (5 0) (6 0) (7 0) (8 0) (9 0) (10 0)
(10 10) (9 9) (8 8) (7 7) (6 6) (5 5) (4 4) (3 3) (2 2) (1 1)
(10 10) (9 10) (8 10) (7 10) (6 10) (5 10) (4 10) (3 10) (2 10) (1 10)
(10 10) (9 9) (8 8) (7 7) (6 6) (5 5) (4 4) (3 3) (2 2) (1 1) (0 0)
(10 10) (9 10) (8 10) (7 10) (6 10) (5 10) (4 10) (3 10) (2 10) (1 10) (0 10)
|