This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
https://www.ptt.cc/bbs/C_Chat/M.1417696853.A.E8F.html | |
https://paiza.jp/poh/enkoi | |
提出言語:C++ | |
得点:100 点 | |
結果: | |
テストケース1:success 0.01秒 | |
テストケース2:success 0.01秒 | |
テストケース3:success 0.01秒 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Document: https://cygwin.rafaelhart.com/daemons/web-server-apache/ | |
# Updated: 2016/01/28 | |
# Install: cygrunsrv, httpd | |
# | |
# Please, run `cygserver-config` before run this script | |
usage () | |
{ | |
echo 'Usage : httpdctl <start|restart|stop>' | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Set(object): | |
"""Sets can contain anything, including themselves. This leads to | |
paradoxical behavior: given R, the set of all sets that don't contain | |
themselves, does R contain R? Here this becomes an infinite recursion. | |
""" | |
def __init__(self, predicate): | |
self.predicate = predicate | |
def __contains__(self, obj): | |
return self.predicate(obj) |