結果
問題 | No.894 二種類のバス |
ユーザー | tanimani364 |
提出日時 | 2021-03-29 18:07:17 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 363 bytes |
コンパイル時間 | 706 ms |
コンパイル使用メモリ | 10,656 KB |
実行使用メモリ | 9,884 KB |
最終ジャッジ日時 | 2023-08-19 16:27:55 |
合計ジャッジ時間 | 2,562 ms |
ジャッジサーバーID (参考情報) |
judge10 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 28 ms
9,788 KB |
testcase_01 | AC | 28 ms
9,672 KB |
testcase_02 | AC | 28 ms
9,692 KB |
testcase_03 | AC | 28 ms
9,700 KB |
testcase_04 | AC | 27 ms
9,700 KB |
testcase_05 | AC | 27 ms
9,672 KB |
testcase_06 | AC | 27 ms
9,700 KB |
testcase_07 | AC | 28 ms
9,812 KB |
testcase_08 | AC | 28 ms
9,816 KB |
testcase_09 | AC | 27 ms
9,664 KB |
testcase_10 | WA | - |
testcase_11 | AC | 27 ms
9,884 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 27 ms
9,668 KB |
testcase_15 | AC | 28 ms
9,820 KB |
testcase_16 | WA | - |
testcase_17 | AC | 29 ms
9,668 KB |
testcase_18 | WA | - |
testcase_19 | AC | 28 ms
9,808 KB |
ソースコード
#!/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()