結果

問題 No.8027 114514
ユーザー ふっぴー
提出日時 2017-04-02 13:14:18
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 21,888 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-08 00:03:12
合計ジャッジ時間 631 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |         scanf("%d",&n);
      |         ^~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <stdlib.h>

int main(void){
	char s[]="7890564231";
	int n;
	scanf("%d",&n);
	n--;
	char a[2];
	a[0]=s[n];a[1]='\0';
	printf("0\n");
	return 0;
}
0