結果
| 問題 | No.632 穴埋め門松列 |
| コンテスト | |
| ユーザー |
Yut176
|
| 提出日時 | 2019-06-06 02:12:54 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 680 bytes |
| 記録 | |
| コンパイル時間 | 690 ms |
| コンパイル使用メモリ | 96,860 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-11 00:49:18 |
| 合計ジャッジ時間 | 1,331 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<string>
#include<sstream>
#include<cmath>
#include<numeric>
#include<map>
#include<stack>
#include<queue>
using namespace std;
long long mod = 1e9 + 7;
int main(void) {
char c[3];
cin >> c[0] >> c[1] >> c[2];
if(c[0] == '?') {
if(c[1] == '2') {
cout << 4 << endl;
}else{
cout << 1 << endl;
}
}
if(c[1] == '?') {
if(c[0] == '2') {
cout << 14 << endl;
}else{
cout << 14 << endl;
}
}
if(c[2] == '?') {
if(c[0] == '2') {
cout << 1 << endl;
}else{
cout << 4 << endl;
}
}
return 0;
}
// EOF
Yut176