結果
| 問題 |
No.358 も~っと!門松列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-14 07:58:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 1,000 ms |
| コード長 | 309 bytes |
| コンパイル時間 | 138 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-22 05:54:16 |
| 合計ジャッジ時間 | 1,752 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
a = [int(i) for i in input().split()]
if len(set(a)) != 3:
print(0)
elif max(a) == a[1] or min(a) == a[1]:
print("INF")
else:
c = 0
for i in range(2, max(a) + 1):
b = [j % i for j in a]
if len(set(b)) == 3 and (max(b) == b[1] or min(b) == b[1]):
c += 1
print(c)