結果
問題 |
No.358 も~っと!門松列
|
ユーザー |
|
提出日時 | 2018-08-07 15:40:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 1,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-19 18:26:16 |
合計ジャッジ時間 | 1,646 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
A1, A2, A3 = map(int, input().split()) if A1 != A2 and A2 != A3 and A3 != A1 and (max(A1,A2,A3) == A2 or min(A1,A2,A3) == A2): print("INF") else: count = 0 for i in range(3,max(A1,A2,A3) + 1): B1 = A1 % i B2 = A2 % i B3 = A3 % i if B1 != B2 and B2 != B3 and B3 != B1 and (max(B1,B2,B3) == B2 or min(B1,B2,B3) == B2): count += 1 print(count)