結果
問題 | No.607 開通777年記念 |
ユーザー |
|
提出日時 | 2017-12-12 17:41:40 |
言語 | Bash (Bash 5.2.21) |
結果 |
TLE
|
実行時間 | - |
コード長 | 479 bytes |
コンパイル時間 | 207 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 13,632 KB |
最終ジャッジ日時 | 2024-12-14 06:06:22 |
合計ジャッジ時間 | 9,092 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 TLE * 2 |
ソースコード
read n ma=()for ((i=0; i<$n; i++))doa+=( 0 )donefor ((x=0; x<$m; x++))doread -a bfor ((i=0; i<$n; i++))doa[i]=$((a[i]+b[i]))donesum=0l=0for ((r=0; r<$n; r++))dosum=$((sum+a[r]))while [ $l -lt $r ] && [ $sum -gt 777 ]; dosum=$((sum-a[l]))l=$((l+1))doneif [ $sum -eq 777 ]; thenecho "YES"exit 0fidonedoneecho "NO"