Submission #00424
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include<bits/stdc++.h> using namespace std; int main(){ int for ( int i=1;i<=n;i++){ for ( int j=1;j<=n;j++){ Lnes++; W[Lems]=A[i]+a[j]; //W=2,4,11,13・・・ } } sort(W+1,W+Lens+1); for ( int i=1;i<=Lens;i++){ long long rem = K - W[i]; int posl = lower_bound(W+1.W+Lens+1.rem)-W; //(1,1,3,5,9)lower_bound 3以上→2 if (W[posl]==rem){ flag= true ; } } return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0007 - 平均点 (Average Score) |
ユーザー名 | ei2124 |
投稿日時 | 2022-04-27 17:24:29 |
言語 | C |
状態 | Compile Error |
得点 | 0 |
ソースコード長 | 489 Byte |
最大実行時間 | - |
最大メモリ使用量 |
コンパイルメッセージ
./Main.c:1:9: fatal error: bits/stdc++.h: No such file or directory #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ compilation terminated.
セット
セット | 得点 | Cases |
---|
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|