結果
| 問題 | No.632 穴埋め門松列 |
| コンテスト | |
| ユーザー |
ats5515
|
| 提出日時 | 2018-01-19 21:32:14 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 495 bytes |
| 記録 | |
| コンパイル時間 | 465 ms |
| コンパイル使用メモリ | 99,300 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-30 08:20:24 |
| 合計ジャッジ時間 | 1,160 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <stdio.h>
using namespace std;
#define int long long
int MOD = 1000000007;
signed main() {
cin.tie(0);
ios::sync_with_stdio(false);
char a, b, c;
cin >> a >> b >> c;
if (a == '?')swap(a, c);
if (b == '?') {
cout << 14 << endl;
}
else {
if (a > b) {
cout << 4 << endl;
}
else {
cout << 1 << endl;
}
}
}
ats5515