結果
| 問題 | No.123 カードシャッフル | 
| コンテスト | |
| ユーザー | 👑  testestest | 
| 提出日時 | 2015-08-06 00:16:15 | 
| 言語 | C90 (gcc 12.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 12 ms / 5,000 ms | 
| コード長 | 179 bytes | 
| コンパイル時間 | 144 ms | 
| コンパイル使用メモリ | 21,504 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-18 03:34:20 | 
| 合計ジャッジ時間 | 1,102 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 10 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 | scanf("%d%d",&m,&m);
      | ^~~~~~~~~~~~~~~~~~~
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%d",&t);*a=a[t];
      |         ^~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
int main(){
int m=51,a[51],t;
while(m--)a[m]=m;
scanf("%d%d",&m,&m);
while(m--){
	scanf("%d",&t);*a=a[t];
	while(t--)a[t+1]=a[t];
}
printf("%d",*a);
return 0;
}
            
            
            
        