結果
| 問題 |
No.736 約比
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2020-01-13 17:35:39 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 407 bytes |
| コンパイル時間 | 1,915 ms |
| コンパイル使用メモリ | 194,060 KB |
| 最終ジャッジ日時 | 2025-01-08 17:21:08 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 65 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ll n, p;
cin >> n;
ll a[n];
for (int i = 0; i < n; i++){
cin >> a[i];
if (i == 0)
p = a[0];
p = gcd(a[i], p);
}
for (int i = 0; i < n; i++){
cout << a[i]/p;
if (i != n-1)
cout << ":";
}
cout << endl;
return 0;
}
Konton7