結果

問題 No.9000 Hello World! (テスト用)
ユーザー くれちー
提出日時 2017-06-12 22:12:04
言語 C
(gcc 13.3.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 551 bytes
コンパイル時間 1,148 ms
コンパイル使用メモリ 25,856 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-25 01:15:26
合計ジャッジ時間 1,689 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 4
権限があれば一括ダウンロードができます

ソースコード

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