結果
| 問題 |
No.365 ジェンガソート
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-16 10:37:44 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| コンパイル時間 | 572 ms |
| コンパイル使用メモリ | 29,056 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-01 06:40:31 |
| 合計ジャッジ時間 | 2,004 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 29 |
ソースコード
#include <stdio.h>
int main(void){
int count=0,i,j=1,a[100000]={},n;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
i=0;
while(j<n){
if(a[i]!=j){
count++;
i--;
}
i++;
j++;
}
printf("%d",count);
}