結果
問題 | No.358 も~っと!門松列 |
ユーザー |
![]() |
提出日時 | 2020-10-25 05:41:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-21 16:57:30 |
合計ジャッジ時間 | 1,816 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
A = list(map(int, input().split())) if (min(A) == A[1] or max(A) == A[1]) and len(list(set(A))) == 3: print("INF") exit() res = 0 for i in range(1, max(A) + 1): B = [a % i for a in A] if (min(B) == B[1] or max(B) == B[1]) and len(list(set(B))) == 3: res += 1 print(res)