結果
| 問題 |
No.358 も~っと!門松列
|
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2016-05-27 22:33:55 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 1,000 ms |
| コード長 | 246 bytes |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-07 17:00:58 |
| 合計ジャッジ時間 | 1,553 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
a,b,c=map(int,input().split())
d=max(a,b,c)
if a in[b,c]or b==c:print(0)
elif d==b or min(a,b,c)==b:print('INF')
else:print(sum(1 for i in range(1,d+1) if (a%i!=b%i and b%i!=c%i and a%i!=c%i) and (max(a%i,b%i,c%i)==b%i or min(a%i,b%i,c%i)==b%i)))
hanorver