結果
問題 | No.1357 Nada junior high school entrance examination 3rd day |
ユーザー |
![]() |
提出日時 | 2021-01-17 01:20:41 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,056 bytes |
コンパイル時間 | 3,291 ms |
コンパイル使用メモリ | 159,852 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-28 17:26:25 |
合計ジャッジ時間 | 3,950 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 21 |
コンパイルメッセージ
main.cpp:28:13: warning: variable 'n' is uninitialized when used here [-Wuninitialized] 28 | assert(1<=n&&n<=50000); | ^ /usr/include/assert.h:93:27: note: expanded from macro 'assert' 93 | (static_cast <bool> (expr) \ | ^~~~ main.cpp:27:7: note: initialize the variable 'n' to silence this warning 27 | ll n; | ^ | = 0 1 warning generated.
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; #define all(s) (s).begin(),(s).end() #define vcin(n) for(ll i=0;i<ll(n.size());i++) cin>>n[i] #define rep2(i, m, n) for (int i = (m); i < (n); ++i) #define rep(i, n) rep2(i, 0, n) #define drep2(i, m, n) for (int i = (m)-1; i >= (n); --i) #define drep(i, n) drep2(i, n, 0) #define rever(vec) reverse(vec.begin(), vec.end()) #define sor(vec) sort(vec.begin(), vec.end()) #define fi first #define se second const ll mod = 998244353; const ll inf = 2000000000000000000ll; static const long double pi = 3.141592653589793; template<class T,class U> void chmax(T& t,const U& u){if(t<u) t=u;} template<class T,class U> void chmin(T& t,const U& u){if(t>u) t=u;} ll modPow(ll a, ll n, ll mod) { ll ret = 1; ll p = a % mod; while (n) { if (n & 1) ret = ret * p % mod; p = p * p % mod; n >>= 1; } return ret; } int main() { /* mod は 1e9+7 */ ios::sync_with_stdio(false); std::cin.tie(nullptr); cout<< fixed << setprecision(10); ll n; assert(1<=n&&n<=50000); }