- 1
- 2
- 3
Как называется физическая сеть, разбитая на подсети?
(man dhcpd.conf)
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−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
+2
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the ActiveQt framework of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively, you may use this file under the terms of the BSD license
** as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
**
** $QT_END_LICENSE$
**
****************************************************************************/
Вот блин, почти в любом проекте в начале каждого файла такая вот куча . Я блядь открываю файл, чтобы посмотреть, что это, хотя бы одну строчку написали: этот класс занимается тем-то и тем-то, так нет, а вот всю эту бурду "ASS PISS" LSD LICENCE - пожалуйста.