結果
| 問題 | No.725 木は明らかに森である |
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-27 16:42:11 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 409 bytes |
| 記録 | |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 37,472 KB |
| 最終ジャッジ日時 | 2026-02-22 13:27:12 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 9 |
ソースコード
#include <stdio.h>
#include <string.h>
void main(void){
char str[500] = "a";
scanf("%s",str);
int i = 0;
while(str[i] != '\0'){
char search[10] = "";
strncpy(search, str+i, 7);
search[8] = '\0';
if(strcmp(search,"treeone") == 0){
printf("forest");
i+=7;
}else{
printf("%c",str[i]);
i++;
}
}
}
Maeda