結果
| 問題 | No.358 も~っと!門松列 |
| コンテスト | |
| ユーザー |
25__toma
|
| 提出日時 | 2019-01-01 21:08:38 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 96 ms / 1,000 ms |
| コード長 | 360 bytes |
| 記録 | |
| コンパイル時間 | 421 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-08 09:34:01 |
| 合計ジャッジ時間 | 3,754 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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