結果
| 問題 | No.358 も~っと!門松列 |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-17 22:41:00 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 1,000 ms |
| + 382µs | |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 81,152 KB |
| 実行使用メモリ | 82,304 KB |
| 最終ジャッジ日時 | 2026-07-18 05:38:57 |
| 合計ジャッジ時間 | 3,037 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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