結果
| 問題 | No.894 二種類のバス | 
| コンテスト | |
| ユーザー |  s0j1san | 
| 提出日時 | 2021-03-06 00:59:18 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 166 bytes | 
| コンパイル時間 | 164 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-10-07 14:25:47 | 
| 合計ジャッジ時間 | 1,446 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 17 | 
ソースコード
import math n,a,b=map(int,input().split()); #print(math.ceil(n/a)+math.ceil(n/b)-math.ceil(n/math.lcm(a,b))); c=math.lcm(a,b); print((n+a-1)//a+(n+b-1)//b+(n+c-1)//c)
