mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-10-14 18:18:23 +00:00
[Init] Solved solutions
This commit is contained in:
1 parent
51f667ac81
commit
20542601dd
131 files changed
+4148
No files matched your search
+40
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
|
||||
namespace problem_510A
|
||||
{
|
||||
class problem_510A
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
int[] ip = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
|
||||
for (int i = 0; i < ip[0]; i++)
|
||||
{
|
||||
switch (i % 4)
|
||||
{
|
||||
case 1:
|
||||
for (int j = 1; j < ip[1]; j++)
|
||||
{
|
||||
Console.Write(".");
|
||||
}
|
||||
Console.WriteLine("#");
|
||||
break;
|
||||
case 3:
|
||||
Console.Write("#");
|
||||
for (int j = 1; j < ip[1]; j++)
|
||||
{
|
||||
Console.Write(".");
|
||||
}
|
||||
Console.WriteLine();
|
||||
break;
|
||||
default:
|
||||
for (int j = 0; j < ip[1]; j++)
|
||||
{
|
||||
Console.Write("#");
|
||||
}
|
||||
Console.WriteLine();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user