結果
問題 | No.543 命題 |
ユーザー |
![]() |
提出日時 | 2020-03-20 14:44:52 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 162 bytes |
コンパイル時間 | 372 ms |
コンパイル使用メモリ | 19,712 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 04:34:58 |
合計ジャッジ時間 | 678 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%c", &p1); | ^~~~~~~~~~~~~~~~ main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%c", &p2); | ^~~~~~~~~~~~~~~~ main.c:7:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%c", &p2); | ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { char p1, p2; scanf("%c", &p1); scanf("%c", &p2); scanf("%c", &p2); printf("%c %c\n", p2, p1); return 0; }