結果
問題 |
No.443 GCD of Permutation
|
ユーザー |
![]() |
提出日時 | 2016-11-11 23:45:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 207 bytes |
コンパイル時間 | 106 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-25 09:46:35 |
合計ジャッジ時間 | 2,140 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 28 |
ソースコード
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)