結果
| 問題 |
No.3195 Three-Letter Acronym
|
| コンテスト | |
| ユーザー |
pengin_2000
|
| 提出日時 | 2025-07-11 21:21:50 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 179 bytes |
| コンパイル時間 | 426 ms |
| コンパイル使用メモリ | 25,676 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-07-11 21:21:53 |
| 合計ジャッジ時間 | 1,367 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%s%s%s", s[0], s[1], s[2]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main()
{
char s[3][16];
scanf("%s%s%s", s[0], s[1], s[2]);
printf("%c%c%c\n", s[0][0] - 'a' + 'A', s[1][0] - 'a' + 'A', s[2][0] - 'a' + 'A');
return 0;
}
pengin_2000