結果
| 問題 |
No.358 も~っと!門松列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-05 01:52:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 1,000 ms |
| コード長 | 271 bytes |
| コンパイル時間 | 367 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-15 09:52:58 |
| 合計ジャッジ時間 | 1,916 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
a,b,c = map(int, input().split())
if (max(a,b,c)==b or min(a,b,c)==b) and a!=b and b!=c and c!=a:
print("INF")
else:
x = 0
for i in range(2,max(a,b,c)+1):
if (max(a%i,b%i,c%i)==b%i or min(a%i,b%i,c%i)==b%i) and a%i!=b%i and b%i!=c%i and c%i!=a%i:
x += 1
print(x)