結果
問題 | No.736 約比 |
ユーザー |
![]() |
提出日時 | 2022-09-21 22:40:20 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 1,855 ms |
コンパイル使用メモリ | 195,600 KB |
最終ジャッジ日時 | 2025-02-07 13:27:58 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 65 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define int long longsigned main(){int N;cin>>N;vector<int> S(N);int ans = 0;for(int i=0;i<N;i++){cin>>S[i];ans = gcd(ans,S[i]);}for(int i=0;i<N;i++) cout<<S[i]/ans<<((i != N-1) ? ':' : ' ');cout<<endl;}