結果
問題 | No.1203 お菓子ゲーム |
ユーザー |
![]() |
提出日時 | 2020-08-22 14:33:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 420 bytes |
コンパイル時間 | 1,004 ms |
コンパイル使用メモリ | 93,364 KB |
最終ジャッジ日時 | 2025-01-13 08:46:07 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 51 |
ソースコード
#include <iostream>#include <random>using namespace std;using ll = long long;ll gcds(ll a,ll b){if (a%b == 0){return(b);}else{return(gcds(b, a%b));}}ll si(ll a,ll b){ll r=gcds(a,b);return a/r;}ll bo(ll a,ll b){ll r=gcds(a,b);return b/r;}int main(){ll s;cin>>s;ll a,b;for(int i=0;i<s;i++){cin>>a>>b;cout<<gcd(a,b)<<endl;}}