- 1
Перепись долбоёбов.
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−5
Перепись долбоёбов.
Отписываемся в комментах.
−4
Как называется физическая сеть, разбитая на подсети?
(man dhcpd.conf)
−2
Заебали, пофиксите уже
Csrf verification error
−3
24700-гет
−3
Вот прога на C#:
using System;
namespace SomeNamespace
{
class SomeProgram
{
public static void Main(string[] args)
{
ulong input = ulong.Parse(Console.ReadLine());
int counter = 0;
Console.Write(input + " ");
while(input != 3)
{
switch(input % 3)
{
case 0:
input /= 3;
Console.Write("/ 3 = " + input + " ");
counter++;
break;
case 1:
input--;
Console.Write("- 1 = " + input + " ");
counter++;
break;
case 2:
input++;
Console.Write("+ 1 = " + input + " ");
counter++;
break;
}
}
Console.WriteLine("\n3 reached. Number of moves: " + counter);
}
}
}
А вот на питонии:
inpt = int(input())
counter = 0
print(str(inpt),end=' ')
while not (inpt==3):
if not(inpt%3==0):
if inpt % 3 == 1:
inpt -= 1
print("- 1 = "+str(inpt),end=' ')
counter += 1
else:
inpt += 1
print("+ 1 = "+str(inpt),end=' ')
counter += 1
else:
inpt //= 3
print("/ 3 = "+str(inpt),end=' ')
counter += 1
else:
print("\n3 reached. Number of moves: "+str(counter),end='',flush=True)
И вот теперь скажите что-то, почему C# лучше питона.
+3
Почему Application стал так часто падать???
А ещё csrf eггог-и nocTo9lHHo
−1
#!/l_l5l2/8IN/l>Y7l-lON3
IMl>Ol27 5Y5
41l>l-l4 = {
'4': '4',
'8': '8',
'(': '(',
')': ')',
'3': '3',
'#': '#',
'9': '9',
'l-l': '1-1',
'1': '1',
'_l': '_1',
'l<': '1<',
'l>': '1>',
'&': '&',
'l2': '12',
'5': '5',
'7': '7',
'l_l': '1_1',
'\/': '\/',
'\/\/': '\/\/',
'><': '><',
'Y': 'Y',
'2': '2'
}
I# 13N(5Y5.4l29\/) > 1:
# = Ol>3N(5Y5.4l29\/[1])
3153:
# = 5Y5.57)IN
8l_l##3l2 = []
#Ol2 ( IN #.l234)().l_ll>l>3l2():
8l_l##3l2.4l>l>3N)(41l>l-l4[(] I# ( IN 41l>l-l4 3153 ()
l>l2IN7(''._lOIN(8l_l##3l2))
−1
def $qmark = 1
def ? = 1
// Error:(2, 6) method ? is defined twice
Scala-way
+1
Давайте течь от отступов и ругать код без оных.
0
http://codeforces.com/blog/entry/61248