結果
| 問題 |
No.3294 UECoder
|
| コンテスト | |
| ユーザー |
pengin_2000
|
| 提出日時 | 2025-10-21 06:22:18 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 215 bytes |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 26,152 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-10-21 06:22:20 |
| 合計ジャッジ時間 | 1,354 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d", &n);
| ^~~~~~~~~~~~~~~
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%s", s);
| ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
char s[102];
int main()
{
int n;
scanf("%d", &n);
scanf("%s", s);
int i;
for (i = 0; s[i] != 'c'; i++);
printf("UEC");
for (i++; i < n; i++)
printf("%c", s[i]);
printf("\n");
return 0;
}
pengin_2000