結果
| 問題 |
No.1591 Two Digits
|
| ユーザー |
|
| 提出日時 | 2021-07-10 19:03:47 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,424 bytes |
| コンパイル時間 | 2,125 ms |
| コンパイル使用メモリ | 189,860 KB |
| 最終ジャッジ日時 | 2025-01-23 00:26:42 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 11 WA * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:21:14: warning: ‘N’ is used uninitialized [-Wuninitialized]
21 | if(10<=N and N<=99) OI("Yes");
| ~~~~~~^~~~~~~~~
main.cpp:20:8: note: ‘N’ was declared here
20 | ll N;
| ^
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Pa = pair<ll,ll>; // vector<Pa> event; event.emplace_back(a,b); // 複数要素(複雑なのを含む)->sortしないならclassを作成すべし
using VPll = vector<pair<ll,ll>>; //VPll event; event.emplace_back(a,b);
using Vll = vector<ll>; // Vll a(6,0); //要素0~5 初期値0
using VVll = vector<Vll>; // VVll G(N+1,Vll(0)); VVll a(5,Vll(3,0)); vector<VVll> G(H+1,VVll(W+1,Vll(5,0)));
#define INF (ll)1<<60 // 10^18 < 1<<60 = 1152921504606846976
#define FOR(i,a,b) for(ll i=(ll)(a); i<(ll)(b); i++)// a ~ b-1 i++ for
#define FOR_(i,b,a) for(ll i=(ll)(b)-1; (ll)(a)<=i; i--)// b-1 ~ a i-- for
#define ALL(a) (a).begin(),(a).end() // min,max,sort,find,lower_bound
#define OI(s) cout<<(s)<<"\n" // printf("%8.8lf\n",(s));//double 小数点上8桁まで,下8桁まで出力
#define OI2(s0,s1) cout<<(s0)<<" "<<(s1)<<"\n"
#define OI3(s0,s1,s2) cout<<(s0)<<" "<<(s1)<<" "<<(s2)<<"\n"
#define OI4(s0,s1,s2,s3) cout<<(s0)<<" "<<(s1)<<" "<<(s2)<<" "<<(s3)<<"\n"
#define OIV(a) for(ll i=0;i<(a).size();i++){if((a)[i]==INF){cout<<"I"<<" ";}else {cout<<(a)[i]<<" ";}} cout<<""<<"\n"
#define OIVV(a) for(ll i=0;i<(a).size();i++){for(ll j=0;j<(a[i]).size();j++){if((a)[i][j]==INF){cout<<"I"<<" ";}else {cout<<(a)[i][j]<<" ";}}cout<<" "<<"\n";}
int main(){
ll N;
if(10<=N and N<=99) OI("Yes");
else OI("No");
return 0;
}