結果
| 問題 | No.292 芸名 | 
| コンテスト | |
| ユーザー |  sasa | 
| 提出日時 | 2025-03-14 11:30:47 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 225 bytes | 
| コンパイル時間 | 445 ms | 
| コンパイル使用メモリ | 28,160 KB | 
| 実行使用メモリ | 7,324 KB | 
| 最終ジャッジ日時 | 2025-03-14 11:30:48 | 
| 合計ジャッジ時間 | 1,455 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |         scanf("%s %d %d", str, &B, &C);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include<stdio.h>
#include<string.h>
int main()
{
	char str[55];
	int B, C;
	scanf("%s %d %d", str, &B, &C);
	int  len = strlen(str);
	for (int i = 0; i < len; i++){
		if (i != B && i != C){
			printf("%c", str[i]);
		}
	}
}
            
            
            
        