結果
問題 | No.358 も~っと!門松列 |
ユーザー |
![]() |
提出日時 | 2016-09-12 20:29:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 420 bytes |
コンパイル時間 | 323 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-17 04:05:21 |
合計ジャッジ時間 | 1,869 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 11 |
ソースコード
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(list(B)) print(cnt)