[gcj] Re: Anybody has a working C# solution for Cryptopangrams?

2019-04-09 Thread Vladyslav Lukiantsev
понедельник, 8 апреля 2019 г., 23:40:47 UTC+3 пользователь Peter Chikov написал:
> My solution follows the analysis and still times out(TLE).
> 
> using System;
> using System.Collections.Generic;
> using System.IO;
> using System.Linq;
> using System.Text;
> using System.Threading.Tasks;
> 
> namespace Problem1
> {
> class Program
> {
> static void Main(string[] args)
> {
> 
> string numCases = Console.ReadLine();
> int n = Int32.Parse(numCases.Trim());
> 
> for (int i = 0; i < n; i++)
> {
> 
> int sizeMaze = Int32.Parse(Console.ReadLine());
> string pathEnemy = Console.ReadLine();
> string path = "";
> for (int j = 0; j < pathEnemy.Length; j++)
> {
> if (pathEnemy[j] == 'S') path += 'E';
> else path += 'S';
> }
> 
> Console.WriteLine("Case #" + (i + 1) + ": " + path);
> }
> }
> }
> }

forget about string concatenation. Just never use it.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/486e34d3-a640-48fc-80b8-e0ed5d693a2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gcj] Fourth task in qualification round is not actually a programming/algorithmization problem

2018-04-11 Thread Vladyslav Lukiantsev
First three tasks include some optimizations, working with arrays, etc. 
Meanwhile, fourth task is the pure geometric problem, which takes a couple of 
lines of code which are just mirror for geometric formulas and nothing with 
optimization.
Is it normal for Google Code Jam to include such strange tasks in competition?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/28c70039-5333-455b-8663-9dd203791b43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.