結果

問題 No.725 木は明らかに森である
ユーザー kidhrnkidhrn
提出日時 2019-09-09 23:49:30
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 619 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 27,816 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-11 04:37:06
合計ジャッジ時間 878 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 WA -
testcase_04 AC 0 ms
4,380 KB
testcase_05 WA -
testcase_06 AC 1 ms
4,380 KB
testcase_07 WA -
testcase_08 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(void){
    
    char S[100];
    scanf("%s",S);
    
   
    
    for(int i=0;S[i]!='\0';i++){
        if(S[i]=='t')
            if(S[i+1]=='r')
                if(S[i+2]=='e')
                    if(S[i+3]=='e')
                        if(S[i+4]=='o')
                            if(S[i+5]=='n')
                                if(S[i+6]=='e'){
                                    S[i]='f';S[i+1]='o';S[i+2]='r';S[i+3]='e';S[i+4]='s';S[i+5]='t';
             for(int j=6;S[i+j]!='\0';j++){
                 S[i+j]=S[i+j+1];}i+=6;}}
    
    printf("%s\n",S);
    
    return 0;
    
    
}
0