結果
| 問題 | No.3262 水色コーダーさん、その問題d問題ですよ?(1<=d<=N) |
| コンテスト | |
| ユーザー |
kino0402
|
| 提出日時 | 2025-12-01 16:58:50 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 2,557 ms |
| コンパイル使用メモリ | 275,260 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-12-01 16:58:55 |
| 合計ジャッジ時間 | 3,579 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 24 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<bits/stdc++.h>
| ^~~~~~
ソースコード
#import<bits/stdc++.h>
using namespace std;int n,a,m,i=1,l[8],r[8],t[8];int main(){for(cin>>n;i<n;i++)cin>>l[i]>>r[i],t[i]=i;do{m=0;for(int i:t)m=m>r[i]?1e7:max(m,l[i]);m-1e7&&a++;}while(next_permutation(t,t+n));cout<<a;}
kino0402