結果
| 問題 |
No.894 二種類のバス
|
| コンテスト | |
| ユーザー |
kokatsu
|
| 提出日時 | 2022-11-08 23:36:58 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 193 bytes |
| コンパイル時間 | 2,008 ms |
| コンパイル使用メモリ | 205,096 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-22 16:40:11 |
| 合計ジャッジ時間 | 3,200 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
コンパイルメッセージ
/home/linuxbrew/.linuxbrew/opt/dmd/include/dlang/dmd/std/numeric.d(2999): Warning: cannot inline function `std.numeric.gcdImpl!ulong.gcdImpl`
ソースコード
import std;
void main() {
long T, A, B;
readf("%d %d %d\n", T, A, B);
long C = A / gcd(A, B);
long res = (T - 1) / A + (T - 1) / B - ((T - 1) / B) / C + 1;
res.writeln;
}
kokatsu