結果
| 問題 |
No.632 穴埋め門松列
|
| コンテスト | |
| ユーザー |
ats5515
|
| 提出日時 | 2018-01-19 21:32:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 495 bytes |
| コンパイル時間 | 706 ms |
| コンパイル使用メモリ | 80,000 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 12:12:30 |
| 合計ジャッジ時間 | 1,266 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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