結果
問題 | No.415 ぴょん |
ユーザー |
![]() |
提出日時 | 2020-11-20 13:03:43 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 194 bytes |
コンパイル時間 | 2,135 ms |
コンパイル使用メモリ | 191,452 KB |
最終ジャッジ日時 | 2025-01-16 01:51:51 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {ios::sync_with_stdio(false);cin.tie(nullptr);int N, D;cin >> N >> D;cout << (N - 1) / gcd(N, D) << '\n';return 0;}