結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
![]() |
提出日時 | 2018-01-05 22:02:49 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 510 bytes |
コンパイル時間 | 545 ms |
コンパイル使用メモリ | 66,620 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-23 06:38:05 |
合計ジャッジ時間 | 1,553 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 WA * 2 |
ソースコード
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<functional> #include<fstream> #define rep(N) for (int i = 0; i < N; i++) #define For(i, N) for (i = 0; i < N; i++) #define re return 0 using namespace std; using ll = long long int; using vi = vector<int>; int main() { int a, b; int T; cin >> T; cin >> a; while (cin >> b) { int t = a; a = b; b = t; if (a + 1 == b)continue; else if (b + 1 == a)continue; cout << "F" << endl; re; } cout << "T" << endl; }