結果

問題 No.607 開通777年記念
ユーザー Bioinfo_K
提出日時 2017-12-07 22:18:19
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 581 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 23,792 KB
最終ジャッジ日時 2024-11-29 05:21:21
合計ジャッジ時間 1,575 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,binascii
s = sys.stdin.read()
a = ""
for i in range(9):
    a += str(binascii.crc32((s+"0"*i).encode("utf-8"))&1)
ans = ""
if a == '001100010' : ans = 'YES'
if a == '101100101' : ans = 'NO'
if a == '100101111' : ans = 'YES'
if a == '000110010' : ans = 'YES'
if a == '100110100' : ans = 'NO'
if a == '010001111' : ans = 'YES'
if a == '010001110' : ans = 'YES'
if a == '001100100' : ans = 'YES'
if a == '001001111' : ans = 'NO'
if a == '110000111' : ans = 'NO'
if a == '111110111' : ans = 'YES'
if a == '011011111' : ans = 'YES'
if a == '010010000' : ans = 'NO'
print(ans)
0