public static int tonguocso(int n)
public static bool bai11(int n)
public static void bai12(int sotrau, int soco, out int td, out int tn, out int tg)
for(td=1; td<sotrau; td++)
for(tn=1; tn<sotrau; tn++)
if (tg>0 && tg%3 == 0 && 5*td+3*tn+tg/3==soco)
public static int bai13(int n)
public static void bai14(out int[] a)
StreamReader r = new StreamReader("Input.txt");
int.TryParse(r.ReadLine(), out n);
int.TryParse(r.ReadLine(), out a[i]);
}catch(FileNotFoundException)
public static void bai15(out List<int> a)
StreamReader r = new StreamReader("Input.txt");
string[] b = r.ReadLine().Split(' ');
for(int i=0; i<b.Length; i++)
int.TryParse(b[i], out x);
}catch(FileNotFoundException)
public static void bai16(int[] a)
for(int i=0; i<a.Length-1; i++)
for(int j=i+1; j<a.Length; j++)
public static void bai17(int[] a)
for(int i=0; i<a.Length-1; i++)
for(int j=i+1; j<a.Length; j++)
public static void bai18(int[] a, int k, int l)
if (k<0 || k>=l || l>=a.Length) return;
for(int j=i+1; j<=l; j++)
public static int bai19(int[] a)
for(int i=1; i<a.Length; i++)
public static int bai20(int[] a)
for(int i=0; i<a.Length; i++)
for(int j=i+1; j<a.Length; j++)