結果

問題 No.8051 cracked
ユーザー keymoon
提出日時 2019-04-01 22:36:16
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 318 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 27,776 KB
実行使用メモリ 25,488 KB
平均クエリ数 3.00
最終ジャッジ日時 2024-07-16 16:53:00
合計ジャッジ時間 4,928 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(){
	char ch;
	FILE *fp;
	char std[114514];
	scanf("%s", std);
	fp = fopen("source.txt","r");
	int index;
	index = 0;
	while(1){
		ch = fgetc(fp); 
		if(ch != std[index]){
			printf("%d\n\"%c\"\n\"%c\"", index, ch, std[index]);
			break;
		}
		index = index + 1;
	}
	fclose(fp);
	return 0;
}
0