結果
| 問題 | No.443 GCD of Permutation |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-12 19:39:23 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 217 bytes |
| 記録 | |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 77,572 KB |
| 最終ジャッジ日時 | 2025-12-03 22:43:09 |
|
ジャッジサーバー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)