結果
| 問題 |
No.365 ジェンガソート
|
| コンテスト | |
| ユーザー |
sawa_tsuka
|
| 提出日時 | 2017-06-19 15:50:23 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 164 bytes |
| コンパイル時間 | 116 ms |
| コンパイル使用メモリ | 28,032 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-02 07:43:18 |
| 合計ジャッジ時間 | 1,508 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 35 |
ソースコード
#include <stdio.h>
int main(){
int i,n,p,x=0;
scanf("%d",&n);
for(i=1;i<=n-1;i++){
scanf("%d",&p);
x+=(i>p);
}
printf("%d",x);
}
sawa_tsuka