fork download
  1. a=[[[3,1],[5,1],[821,1],[273997,1],[7741805910970258163,1]],[[2,2],[107,1],[244219007447,1],[95966808334871,1]],[[2,2],[7,3],[919,1],[56951,1],[103160249,1],[4656410419,1]],[[2,3],[17,1],[177693403,1],[414883089729841223,1]],[[3,1],[31,1],[4951,1],[1346989159,1],[50461897989311,1]],[[7,2],[79,1],[241,1],[4271,1],[48523,1],[1051181,1],[176838479,1]],[[2,1],[1475709031,1],[12177009148932085937,1]],[[6323573,1],[4753519027288416018457,1]],[[2,1],[18164960872674393974925145111,1]]]
  2. a.length.times do |i|
  3. n=1
  4. (a[i].length).times do |j|
  5. n*=a[i][j][0]**a[i][j][1]
  6. end
  7. s="";
  8. (Math.log(n)/Math.log(256)).ceil.times do
  9. s=(n%256).chr+s
  10. n=n/256;
  11. end
  12. print s;
  13. end
Runtime error #stdin #stdout 0.29s 22832KB
stdin
Standard input is empty
stdout
Standard output is empty