結果
| 問題 |
No.1343 Dividing Digit
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-14 22:31:43 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 517 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 31,872 KB |
| 実行使用メモリ | 16,312 KB |
| 最終ジャッジ日時 | 2024-07-22 10:19:38 |
| 合計ジャッジ時間 | 6,696 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 -- * 2 |
| other | -- * 22 |
ソースコード
#include <stdio.h>
int keta(int N,int keta){
for(int i =0;i<=keta;i++){
N*=keta;
}
return keta;
}
int read(){
int x=0; char c;
while(((c=getchar())>'9' || c<'0')&&c!='-');
const int f=(c=='-')&&(c=getchar());
while(x=x*10-48+c,(c=getchar())>='0'&&c<='9');
return f?-x:x;
}
int main(void){
int N=read();
int K=read();
int A[N];
int x = 0;
int y = 0;
for(int i = 0;i<=N;i++){
x+=keta(y+=read(),i);
}
printf("%d",x/y);
return 0;
}