結果
| 問題 | No.543 命題 |
| コンテスト | |
| ユーザー |
ianlinathome
|
| 提出日時 | 2017-11-10 05:35:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 147 bytes |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 22,272 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-24 10:38:39 |
| 合計ジャッジ時間 | 556 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 1 |
コンパイルメッセージ
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);
if(c[0]==a[0])printf("F F\n");
else printf("%c %c\n",a[0],c[0]);
}
ianlinathome