結果

問題 No.443 GCD of Permutation
ユーザー ieneko18
提出日時 2016-11-11 23:49:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-25 09:57:46
合計ジャッジ時間 1,910 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

from functools import reduce
s=[int(i) for i in input()]
n=reduce(lambda a,b:a+b,s)
if s.count(s[0])==len(s):
    print(str(s[0])*len(s))
elif n%36==0:
    print(36)
elif n%9==0:
    print(9)
elif n%3==0:
    print(3)
else:
    print(1)
0