結果
| 問題 |
No.632 穴埋め門松列
|
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-02-23 23:25:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 398 bytes |
| コンパイル時間 | 1,499 ms |
| コンパイル使用メモリ | 168,264 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-10 23:05:38 |
| 合計ジャッジ時間 | 1,973 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include <bits/stdc++.h>
using longlong=long long;
int main(){
std::cin.tie(nullptr);std::cin.sync_with_stdio(false);
std::string a,b,c;std::cin>>a>>b>>c;
for(int i:{1,4}){
int x=a=="?"?i:std::stoi(a);
int y=b=="?"?i:std::stoi(b);
int z=c=="?"?i:std::stoi(c);
if(x<y&&y>z||x>y&&y<z){
std::cout<<i;
}
}
std::cout<<std::endl;
}
ngtkana