結果
| 問題 | No.3706 Unbroken Text |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-11 21:20:58 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 282µs | |
| コード長 | 610 bytes |
| 記録 | |
| コンパイル時間 | 2,012 ms |
| コンパイル使用メモリ | 332,600 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-11 21:21:14 |
| 合計ジャッジ時間 | 3,329 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#ifndef INCLUDED_MAIN
#define INCLUDED_MAIN
#include __FILE__
using namespace nskr;
int main(void){
char a, b; cin >> a >> b;
if(abs(a-b) == 1) cout << "Yes\n";
else cout << "No\n";
}
#else
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld= long double;
#define rep(i,n) for(i=0;i<(n);i++)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
namespace nskr{}
int randint(int a, int b){
static mt19937 gen(chrono::steady_clock::now().time_since_epoch().count());
uniform_int_distribution<int> dist(a,b);
return dist(gen);
}
#endif