結果
| 問題 |
No.358 も~っと!門松列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-08 18:41:48 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 1,000 ms |
| コード長 | 304 bytes |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-26 02:55:33 |
| 合計ジャッジ時間 | 1,519 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)