結果
| 問題 |
No.632 穴埋め門松列
|
| コンテスト | |
| ユーザー |
Yut176
|
| 提出日時 | 2019-06-06 02:12:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 680 bytes |
| コンパイル時間 | 753 ms |
| コンパイル使用メモリ | 81,508 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-22 18:09:52 |
| 合計ジャッジ時間 | 1,252 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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