結果
| 問題 | No.358 も~っと!門松列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-08 18:41:48 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 22 ms / 1,000 ms |
| + 134µs | |
| コード長 | 304 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-08 02:22:07 |
| 合計ジャッジ時間 | 1,968 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
A = [int(i) for i in input().split()]
if len(set(A)) == len(A) and (A[1] == max(A) or A[1] == min(A)):
print("INF")
else:
c = 0
for i in range(max(A), 0, -1):
B = [j%i for j in A]
if len(set(B)) == len(B) and (B[1] == max(B) or B[1] == min(B)):
c += 1
print(c)