acmsguru |
---|
Finished |
29
a = "0123456789";
b = "abcdefghigklmn";
print(a);
print( substr(b, 1, 2));
substr(b, 0, 1) = substr(a, 2, 7);
c = b;
print(substr(c,0));
print(substr(a, - 2, - 1));
print(substr(a, -6, 2));
print(substr(a, - 5));
print(substr(a, 1, 2));
Output0123456789
bc
2345678bcdefghigklmn
8
45
56789
12
Author: Ilya V. Elterman Resource: ACM International Collegiate Programming Contest 2003-2004
North-Eastern European Region, Southern SubregionDate: 2003 October, 9
Name |
---|