結果
| 問題 | 
                            No.358 も~っと!門松列
                             | 
                    
| コンテスト | |
| ユーザー | 
                             25__toma
                         | 
                    
| 提出日時 | 2019-01-01 21:08:38 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 32 ms / 1,000 ms | 
| コード長 | 360 bytes | 
| コンパイル時間 | 221 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-11-08 02:18:30 | 
| 合計ジャッジ時間 | 1,605 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 23 | 
ソースコード
#N = int(input())
A = [int(i) for i in input().split()]
#s = [[int(j) for j in input().split()] for i in range(N)]
def isPine(L):
    return len(set(L))==len(L) and sorted(L)[1] != L[1]
if isPine(A):
    print("INF")
else:
    res = 0
    for p in range(1,max(A)+1):
        B = [num % p for num in A]
        if isPine(B):
            res+=1
    print(res)
            
            
            
        
            
25__toma