結果
問題 |
No.442 和と積
|
ユーザー |
![]() |
提出日時 | 2018-12-21 22:04:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 405 bytes |
コンパイル時間 | 852 ms |
コンパイル使用メモリ | 88,032 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-25 09:39:15 |
合計ジャッジ時間 | 1,687 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 7 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <set> #include <cmath> #include <algorithm> #include <iomanip> #include <queue> using ll = long long; using namespace std; ll GCD(ll a, ll b) { if (b == 0) return a; return GCD(b, a % b); } int main(void) { ll A, B; cin >> A >> B; if (A < B) swap(A, B); cout << GCD(A, B) << endl; return 0; }