結果
| 問題 | No.2460 #強調# |
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-17 17:12:30 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 378 bytes |
| 記録 | |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 37,188 KB |
| 最終ジャッジ日時 | 2026-02-22 13:16:42 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 1 |
| other | AC * 3 RE * 8 |
ソースコード
#include <stdio.h>
#include <stdbool.h>
void main(void) {
char str[1000000] = "a";
scanf("%s",str);
bool emphasisFlg = false;
int i = 0;
while(str[i] != '\0'){
if(!emphasisFlg && str[i] == '#'){
emphasisFlg = true;
}else if(emphasisFlg && str[i] != '#'){
printf("%c", str[i] );
}else if(emphasisFlg && str[i] == '#'){
emphasisFlg = false;
}
i++;
}
}
Maeda