結果
問題 |
No.543 命題
|
ユーザー |
![]() |
提出日時 | 2017-10-16 20:44:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 555 bytes |
コンパイル時間 | 655 ms |
コンパイル使用メモリ | 75,380 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 21:13:42 |
合計ジャッジ時間 | 1,185 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 4 |
コンパイルメッセージ
main.cpp:26:25: warning: multi-character character constant [-Wmultichar] 26 | cout << 'T '; | ^~~~ main.cpp:29:25: warning: multi-character character constant [-Wmultichar] 29 | cout << 'F '; | ^~~~
ソースコード
#include<iostream> #include<string> #include<string.h> #include<algorithm> #include<stdio.h> #include<cmath> #include<vector> #include<utility> #include<stack> #include<queue> #include<list> #define FOR(i, a, b) for(int i=(a);i<=(b);i++) #define RFOR(i, a, b) for(int i=(a);i>=(b);i--) #define MOD 1000000007 #define INF 1000000000 using namespace std; int main(void) { char s, t; cin >> s >> t; if (t == 'T') { cout << 'T '; } else { cout << 'F '; } if (s == 'T') { cout << 'T' << endl; } else { cout << 'F' << endl; } return 0; }