結果
| 問題 |
No.1233 割り切れない気持ち
|
| コンテスト | |
| ユーザー |
CuriousFairy315
|
| 提出日時 | 2019-07-30 23:56:43 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 264 bytes |
| コンパイル時間 | 1,118 ms |
| コンパイル使用メモリ | 54,476 KB |
| 実行使用メモリ | 14,016 KB |
| 最終ジャッジ日時 | 2024-06-22 16:30:31 |
| 合計ジャッジ時間 | 5,759 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 TLE * 1 -- * 33 |
ソースコード
#include<iostream>
using namespace std;
int main() {
int N;
int A[200000];
long ans = 0;
cin >> N;
for (int i = 0;i < N;++ i) cin >> A[i];
for (int i = 0;i < N;++ i) for (int j = 0;j < N;++ j) ans += A[i] % A[j];
cout << ans << endl;
}
CuriousFairy315