fork download
  1. import std.algorithm;
  2. import std.stdio;
  3. import std.conv;
  4. import std.string;
  5.  
  6. int main() {
  7. char[] arr;
  8.  
  9. readln(arr);
  10. writeln(map!"a * a + a + 1"(to!(double[])(split(arr))));
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 3776KB
stdin
1 2 3 4 5 6 23 3
stdout
[3, 7, 13, 21, 31, 43, 553, 13]