結果
| 問題 | 
                            No.894 二種類のバス
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tanimani364
                         | 
                    
| 提出日時 | 2021-03-29 18:07:17 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 363 bytes | 
| コンパイル時間 | 219 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 11,264 KB | 
| 最終ジャッジ日時 | 2024-11-29 10:17:59 | 
| 合計ジャッジ時間 | 1,777 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 13 WA * 4 | 
ソースコード
#!/usr/bin/env python3 #coding:utf-8 import math import string import random import heapq from sys import stdin # import numpy as np # from matplotlib import pyplot as plt def main(): read=stdin.readline #edit here! t,a,b=map(int,read().split()) ans=(t+a-2)//a+(t+b-2)//b-(t+math.lcm(a,b)-2)//math.lcm(a,b) print(ans) if __name__ == '__main__': main()
            
tanimani364