結果
問題 |
No.358 も~っと!門松列
|
ユーザー |
|
提出日時 | 2019-07-02 17:12:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 337 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-13 06:36:52 |
合計ジャッジ時間 | 1,675 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
a, b, c = map(int, input().split()) if a == b or b == c or a == c: print(0) elif max(a, b, c) == b or min(a, b, c) == b: print('INF') else: x = 0 for i in range(2, max(a+1, b+1, c+1)): A = a % i B = b % i C = c % i if (A < B > C or A > B < C) and A != C: x += 1 print(x)