結果
問題 | No.292 芸名 |
ユーザー |
|
提出日時 | 2020-03-06 19:59:36 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 220 bytes |
コンパイル時間 | 130 ms |
コンパイル使用メモリ | 22,912 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 03:27:13 |
合計ジャッジ時間 | 680 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%s %d %d",S,&B,&C); | ~~~~~^~~~~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio>#include <cstring>int main(){char S[51];int B,C;scanf("%s %d %d",S,&B,&C);for(int i=0;i<strlen(S);i++){if(i!=B && i!=C)printf("%c",S[i]);}printf("\n");return 0;}