結果
| 問題 | 
                            No.358 も~っと!門松列
                             | 
                    
| コンテスト | |
| ユーザー | 
                             taba
                         | 
                    
| 提出日時 | 2016-04-17 22:41:00 | 
| 言語 | Python2  (2.7.18)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 91 ms / 1,000 ms | 
| コード長 | 246 bytes | 
| コンパイル時間 | 110 ms | 
| コンパイル使用メモリ | 6,912 KB | 
| 実行使用メモリ | 6,272 KB | 
| 最終ジャッジ日時 | 2024-10-04 10:38:34 | 
| 合計ジャッジ時間 | 2,590 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 23 | 
ソースコード
def isKDMT(a,b,c): if a!=b and b!=c and a!=c and(max(a,b,c)==b or min(a,b,c)==b): return True return False a,b,c=map(int,raw_input().split()) t=0 for i in xrange(1,100000): if isKDMT(a%i,b%i,c%i): t+=1 if t>1000: print"INF" else: print t
            
taba