結果

問題 No.3051 cracked
ユーザー くれちーくれちー
提出日時 2019-04-01 23:06:59
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 168 ms / 1,024 ms
コード長 600 bytes
コンパイル時間 507 ms
コンパイル使用メモリ 27,316 KB
実行使用メモリ 24,444 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-30 05:14:55
合計ジャッジ時間 6,150 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 168 ms
23,688 KB
testcase_01 AC 161 ms
24,300 KB
testcase_02 AC 161 ms
23,688 KB
testcase_03 AC 164 ms
23,676 KB
testcase_04 AC 163 ms
23,580 KB
testcase_05 AC 163 ms
23,868 KB
testcase_06 AC 159 ms
24,096 KB
testcase_07 AC 163 ms
24,072 KB
testcase_08 AC 164 ms
23,448 KB
testcase_09 AC 161 ms
24,084 KB
testcase_10 AC 161 ms
23,448 KB
testcase_11 AC 163 ms
23,712 KB
testcase_12 AC 164 ms
23,664 KB
testcase_13 AC 164 ms
23,412 KB
testcase_14 AC 165 ms
23,712 KB
testcase_15 AC 161 ms
24,420 KB
testcase_16 AC 162 ms
23,424 KB
testcase_17 AC 162 ms
23,724 KB
testcase_18 AC 162 ms
23,880 KB
testcase_19 AC 161 ms
24,372 KB
testcase_20 AC 163 ms
23,664 KB
testcase_21 AC 162 ms
24,336 KB
testcase_22 AC 162 ms
24,444 KB
testcase_23 AC 162 ms
24,384 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: 関数 ‘main’ 内:
main.c:1:475: 警告: 関数 ‘getchar’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    1 | int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = "int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = %c%s%c; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } }"; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } }
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^~~~~~~
main.c:1:1: 備考: ‘getchar’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
  +++ |+#include <stdio.h>
    1 | int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = "int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = %c%s%c; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } }"; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } }
main.c:1:486:

ソースコード

diff #

int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = "int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = %c%s%c; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } }"; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } }
0