結果
問題 |
No.358 も~っと!門松列
|
ユーザー |
|
提出日時 | 2023-06-06 16:35:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 1,000 ms |
コード長 | 333 bytes |
コンパイル時間 | 302 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-29 08:35:19 |
合計ジャッジ時間 | 2,025 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
A, B, C = map(int,input().split()) ANS = 0 if (A != C and A > B and C > B) or (A != C and A < B and C < B): print("INF") else: ANS = 0 for R in range(1, 1011): A2, B2, C2 = A % R, B % R, C % R if (A2 != C2 and A2 > B2 and C2 > B2) or (A2 != C2 and A2 < B2 and C2 < B2): ANS += 1 print(ANS)