結果
| 問題 |
No.358 も~っと!門松列
|
| コンテスト | |
| ユーザー |
r_yo6021
|
| 提出日時 | 2016-09-12 20:29:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 1,000 ms |
| コード長 | 393 bytes |
| コンパイル時間 | 98 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-17 04:05:30 |
| 合計ジャッジ時間 | 1,594 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
def is_kadomatsu(a, b, c):
ans = False
if b == min(a, b, c) or b == max(a, b, c):
if a != b and b != c and c != a:
ans = True
return ans
A = list(map(int, input().split()))
if is_kadomatsu(*A):
print('INF')
else:
cnt = 0
for i in range(1, max(A) + 1):
B = [x % i for x in A]
if is_kadomatsu(*B):
cnt += 1
print(cnt)
r_yo6021