結果
| 問題 |
No.443 GCD of Permutation
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-12 19:39:23 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 217 bytes |
| コンパイル時間 | 178 ms |
| コンパイル使用メモリ | 6,948 KB |
| 実行使用メモリ | 8,792 KB |
| 最終ジャッジ日時 | 2024-11-25 21:29:14 |
| 合計ジャッジ時間 | 30,970 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 WA * 3 |
ソースコード
#!/usr/bin/env python2
import time
import random
import fractions
n = list(raw_input())
d = int(''.join(n))
while time.clock() < 0.9:
random.shuffle(n)
x = int(''.join(n))
d = fractions.gcd(d, x)
print(d)