結果

問題 No.9000 Hello World! (テスト用)
ユーザー くれちーくれちー
提出日時 2017-06-12 22:12:04
言語 C
(gcc 12.3.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 551 bytes
コンパイル時間 829 ms
コンパイル使用メモリ 25,604 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-26 08:13:42
合計ジャッジ時間 1,580 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>

int main() {
    const char *code = 
        "#include<stdio.h>\n"
        "#include<stdlib.h>\n"
        "int main() {"
        "FILE *fp = fopen(\"hello1.c\", \"w\");"
        "fprintf(fp, \"main(){puts(\\\"Hello World!\\\");}\");"
        "fclose(fp);"
        "system(\"gcc hello1.c -o hello1 > /dev/null\\n./hello1\");"
        "return 0;"
        "}";
    FILE *fp = fopen("hello2.c", "w");
    fprintf(fp, code);
    fclose(fp);
    system("gcc hello2.c -o hello2 > /dev/null\n./hello2");
    return 0;
}
0