結果
| 問題 | No.1219 Mancala Combo |
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2021-05-14 00:00:48 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 5,795 ms |
| コンパイル使用メモリ | 359,176 KB |
| 実行使用メモリ | 9,612 KB |
| 最終ジャッジ日時 | 2024-09-25 11:50:40 |
| 合計ジャッジ時間 | 7,376 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 14 WA * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_int.hpp>
typedef boost::multiprecision::cpp_int mp;
int main(){
int n;
cin>>n;
vector<mp> A(n);
mp cnt=0;
for(int i=n-1;i!=-1;--i){
if((A[i]+cnt)%(i+1)){
cout<<"No"<<endl;
return 0;
}
cnt+=(A[i]+cnt)/(i+1);
}
cout<<"Yes"<<endl;
}
ytft