結果
| 問題 | No.736 約比 |
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2020-01-13 17:33:18 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 409 bytes |
| 記録 | |
| コンパイル時間 | 2,291 ms |
| コンパイル使用メモリ | 194,048 KB |
| 最終ジャッジ日時 | 2025-01-08 17:20:57 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 58 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int n, p;
cin >> n;
int 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