結果
問題 | No.358 も~っと!門松列 |
ユーザー |
![]() |
提出日時 | 2016-06-17 11:52:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 1,000 ms |
コード長 | 458 bytes |
コンパイル時間 | 143 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-09 16:49:11 |
合計ジャッジ時間 | 1,738 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
a = list(map(int, input().split(' '))) if False in [a[i%3] != a[(i+1)%3] for i in range(3)]: print(0) else: if max(a) == a[1] or min(a) == a[1]: print('INF') else: cnt = 0 for j in range(3,max(a)+1): t = list(map(lambda x: x % j, a)) if False not in [t[i % 3] != t[(i + 1) % 3] for i in range(3)]: if max(t) == t[1] or min(t) == t[1]: cnt += 1 print(cnt)