結果

問題 No.543 命題
ユーザー yukiteruyukiteru
提出日時 2017-10-16 20:44:56
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 555 bytes
コンパイル時間 677 ms
コンパイル使用メモリ 75,252 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-28 23:49:26
合計ジャッジ時間 1,296 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 ';
      |                         ^~~~

ソースコード

diff #

#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;
}
0