結果
| 問題 | No.894 二種類のバス |
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-04-15 17:01:02 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 163 bytes |
| 記録 | |
| コンパイル時間 | 1,719 ms |
| コンパイル使用メモリ | 179,144 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-17 23:58:47 |
| 合計ジャッジ時間 | 3,485 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int t,a,b;cin>>t>>a>>b;t--;
cout<<t/a+t/b-t/((a/__gcd(a,b))*b)+1<<endl;
}
cureskol