結果
| 問題 |
No.543 命題
|
| コンテスト | |
| ユーザー |
ianlinathome
|
| 提出日時 | 2017-11-10 05:35:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 111 bytes |
| コンパイル時間 | 96 ms |
| コンパイル使用メモリ | 22,144 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-24 10:38:41 |
| 合計ジャッジ時間 | 510 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:4:6: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%s",c);
| ~~~~~^~~~~~~~
main.cpp:5:6: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%s",a);
| ~~~~~^~~~~~~~
ソースコード
#include <stdio.h>
int main(){
char c[100],a[100];
scanf("%s",c);
scanf("%s",a);
printf("%c %c\n",a[0],c[0]);
}
ianlinathome