結果
| 問題 |
No.2999 Long Long Friedrice
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2024-12-24 12:55:39 |
| 言語 | cLay (20241019-1) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 2,000 ms |
| コード長 | 122 bytes |
| コンパイル時間 | 2,766 ms |
| コンパイル使用メモリ | 181,172 KB |
| 実行使用メモリ | 19,328 KB |
| 最終ジャッジ日時 | 2024-12-24 12:55:45 |
| 合計ジャッジ時間 | 4,696 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 6 |
| other | AC * 33 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:252:18: warning: narrowing conversion of ‘A[i]’ from ‘long long int’ to ‘int’ [-Wnarrowing]
252 | C.insert({A[i],A[i]+A[i+N]});
| ~~~^
main.cpp:252:18: warning: narrowing conversion of ‘A[i]’ from ‘long long int’ to ‘int’ [-Wnarrowing]
main.cpp:252:24: warning: narrowing conversion of ‘(A[i] + A[(((long long int)i) + N)])’ from ‘long long int’ to ‘int’ [-Wnarrowing]
252 | C.insert({A[i],A[i]+A[i+N]});
| ~~~~^~~~~~~
main.cpp:252:24: warning: narrowing conversion of ‘(A[i] + A[(((long long int)i) + N)])’ from ‘long long int’ to ‘int’ [-Wnarrowing]
ソースコード
ll@N,@A[2N],S[2d6]{0,1};set<VI>C;rep(i,N)C.insert({A[i],A[i]+A[i+N]});for(auto&c:C)S[c[0]]?S[c[1]]=c[1]:0;wt(max(S(2d6)));